diff options
author | Alexander Graf <agraf@suse.de> | 2012-04-26 19:00:17 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-05-06 10:19:10 -0400 |
commit | 978b4fae45b3fae803a9f56e2262f01f71b7dbc9 (patch) | |
tree | b19c22dc9280d4e97bf5c9463882fd50053148b9 /arch/powerpc | |
parent | 518f040c826d569daf260153d4f75c21b6d9979b (diff) |
KVM: PPC: Fix stbux emulation
Stbux writes the address it's operating on to the register specified in ra,
not into the data source register.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/emulate.c b/arch/powerpc/kvm/emulate.c index b5872f61a213..a27d4dc3b4a3 100644 --- a/arch/powerpc/kvm/emulate.c +++ b/arch/powerpc/kvm/emulate.c | |||
@@ -229,7 +229,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu) | |||
229 | emulated = kvmppc_handle_store(run, vcpu, | 229 | emulated = kvmppc_handle_store(run, vcpu, |
230 | kvmppc_get_gpr(vcpu, rs), | 230 | kvmppc_get_gpr(vcpu, rs), |
231 | 1, 1); | 231 | 1, 1); |
232 | kvmppc_set_gpr(vcpu, rs, vcpu->arch.vaddr_accessed); | 232 | kvmppc_set_gpr(vcpu, ra, vcpu->arch.vaddr_accessed); |
233 | break; | 233 | break; |
234 | 234 | ||
235 | case OP_31_XOP_LHAX: | 235 | case OP_31_XOP_LHAX: |