KVM: PPC: Reimplement LOAD_VSX/STORE_VSX instruction mmio emulation with analyse_inst...
authorSimon Guo <[email protected]>
Mon, 21 May 2018 05:24:24 +0000 (13:24 +0800)
committerPaul Mackerras <[email protected]>
Tue, 22 May 2018 09:52:28 +0000 (19:52 +1000)
commitb01c78c297da45500c18adb99bcc1e08d96768d5
tree777c93be77d5352a2a176bfb2a8cdcb0792a8be2
parent2b33cb585f940180b4c527f0de46ff226a9d25ab
KVM: PPC: Reimplement LOAD_VSX/STORE_VSX instruction mmio emulation with analyse_instr() input

This patch reimplements LOAD_VSX/STORE_VSX instruction MMIO emulation with
analyse_instr() input. It utilizes VSX_FPCONV/VSX_SPLAT/SIGNEXT exported
by analyse_instr() and handle accordingly.

When emulating VSX store, the VSX reg will need to be flushed so that
the right reg val can be retrieved before writing to IO MEM.

[[email protected] - mask the register number to 5 bits.]

Suggested-by: Paul Mackerras <[email protected]>
Signed-off-by: Simon Guo <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
arch/powerpc/kvm/emulate_loadstore.c