Message ID | 1403472217-22263-16-git-send-email-agraf@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index 0a5355d..6658dea 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c @@ -397,6 +397,11 @@ int kvmppc_emulate_any_instruction(struct kvm_vcpu *vcpu) value = kvmppc_get_gpr(vcpu, get_rs(inst)); emulated = kvmppc_emulate_store(vcpu, addr, value, 8); break; + case OP_STW: + addr = get_addr(vcpu, (s16)get_d(inst), get_ra(inst)); + value = kvmppc_get_gpr(vcpu, get_rs(inst)); + emulated = kvmppc_emulate_store(vcpu, addr, value, 4); + break; default: emulated = EMULATE_FAIL; break;
This patch adds full emulation support for the stw instruction. Signed-off-by: Alexander Graf <agraf@suse.de> --- arch/powerpc/kvm/emulate.c | 5 +++++ 1 file changed, 5 insertions(+)