From 8db8d10287ec783e636517da7aec1fe707f389fe Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 3 Dec 2003 07:27:05 +0000 Subject: [PATCH] fix extraction of XER from QEMU engine --- SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp b/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp index fba7c97e..b0850738 100644 --- a/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp +++ b/SheepShaver/src/kpx_cpu/src/test/test-powerpc.cpp @@ -323,14 +323,14 @@ uint32 powerpc_cpu_base::emul_get_xer() const { uint32 xer = 0; for (int i = 0; i < 32; i++) - xer |= ppc->xer[i] << (31 - i); + xer |= ppc->xer[i] << i; return xer; } void powerpc_cpu_base::emul_set_xer(uint32 value) { for (int i = 0; i < 32; i++) - ppc->xer[i] = (value >> (31 - i)) & 1; + ppc->xer[i] = (value >> i) & 1; } uint32 powerpc_cpu_base::emul_get_cr() const