Skip to contentSkip to conversation

KVM: PPC: Fix stbux emulation

PATCH New Alexander Graf 1 participant 1 message Apr 30, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/kvm/emulate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/kvm/emulate.c +1 -1
index b5872f6..a27d4dc 100644
@@ -229,7 +229,7 @@ int kvmppc_emulate_instruction(struct kvm_run *run, struct kvm_vcpu *vcpu)
 			emulated = kvmppc_handle_store(run, vcpu,
 						       kvmppc_get_gpr(vcpu, rs),
 			                               1, 1);
-			kvmppc_set_gpr(vcpu, rs, vcpu->arch.vaddr_accessed);
+			kvmppc_set_gpr(vcpu, ra, vcpu->arch.vaddr_accessed);
 			break;
 
 		case OP_31_XOP_LHAX:
Signature · 1 line
1.6.0.2