From: <ehr...@li...> - 2008-04-28 14:17:26
|
From: Christian Ehrhardt <ehr...@li...> I had today the issue of an unemulated stwx. This patch adds the emulation for it. Signed-off-by: Christian Ehrhardt <ehr...@li...> --- [diffstat] [diff] emulate.c | 7 +++++++ 1 files changed, 7 insertions(+) diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c @@ -270,6 +270,13 @@ int kvmppc_emulate_instruction(struct kv case 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 */ |