From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Sun, 06 May 2012 14:20:53 +0000 Subject: [PATCH 09/16] KVM: PPC: Fix stbux emulation Message-Id: <1336314060-32640-10-git-send-email-agraf@suse.de> List-Id: References: <1336314060-32640-1-git-send-email-agraf@suse.de> In-Reply-To: <1336314060-32640-1-git-send-email-agraf@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc Cc: kvm list , Avi Kivity 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 --- 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 b5872f6..a27d4dc 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) 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: -- 1.6.0.2