kvmppc: add emulation of stwx
Subsystems (2)
PATCH 1/1 kvmppc: add emulation of stwx
From: Christian Ehrhardt <[email protected]>
I had today the issue of an unemulated stwx. This patch adds the emulation for it.
Signed-off-by Christian Ehrhardt <[email protected]>
---
[diffstat]
[diff]
emulate.c | 7 +++++++ 1 files changed, 7 insertions(+)
arch/powerpc/kvm/emulate.c +7 -0
@@ -270,6 +270,13 @@ int kvmppc_emulate_instruction(struct kvcase 146 :/* mtmsr */ rs =get_rs (inst);kvmppc_set_msr (vcpu, vcpu->arch.gpr[rs]); +break ; + +case 151 :/* stwx */ + rs =get_rs (inst); + emulated =kvmppc_handle_store (run, vcpu, + vcpu->arch.gpr[rs], +4 ,1 );break ;case 163 :/* wrteei */
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel