OSDN Git Service

KVM: PPC: Book3S: Add MMIO emulation for FP and VSX instructions
authorBin Lu <lblulb@linux.vnet.ibm.com>
Tue, 21 Feb 2017 13:12:36 +0000 (21:12 +0800)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 20 Apr 2017 01:36:41 +0000 (11:36 +1000)
commit6f63e81bda98cbb549b01faf978884692ded438d
treeed26d38aacc94c14990ebf6ee2979530bc96e7b3
parent307d927967007acef98cfd3f0639c7a4bf234ede
KVM: PPC: Book3S: Add MMIO emulation for FP and VSX instructions

This patch provides the MMIO load/store emulation for instructions
of 'double & vector unsigned char & vector signed char & vector
unsigned short & vector signed short & vector unsigned int & vector
signed int & vector double '.

The instructions that this adds emulation for are:

- ldx, ldux, lwax,
- lfs, lfsx, lfsu, lfsux, lfd, lfdx, lfdu, lfdux,
- stfs, stfsx, stfsu, stfsux, stfd, stfdx, stfdu, stfdux, stfiwx,
- lxsdx, lxsspx, lxsiwax, lxsiwzx, lxvd2x, lxvw4x, lxvdsx,
- stxsdx, stxsspx, stxsiwx, stxvd2x, stxvw4x

[paulus@ozlabs.org - some cleanups, fixes and rework, make it
 compile for Book E, fix build when PR KVM is built in]

Signed-off-by: Bin Lu <lblulb@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/disassemble.h
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/include/asm/ppc-opcode.h
arch/powerpc/kvm/emulate_loadstore.c
arch/powerpc/kvm/powerpc.c