aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/op_mem.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-21 14:13:13 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-02-21 14:13:13 +0000
commit28fbe299c3048caf845a26c4dc2027acabdaa689 (patch)
treeb57ee3b2a13a8fbc0066ba8c5c10b6e77c52a90e /target-ppc/op_mem.h
parent297d8e6227ff1186857b17b1890fc94c637733da (diff)
lwarx fix (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@629 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op_mem.h')
-rw-r--r--target-ppc/op_mem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/op_mem.h b/target-ppc/op_mem.h
index 01df45d9cf..52f55c91b2 100644
--- a/target-ppc/op_mem.h
+++ b/target-ppc/op_mem.h
@@ -141,8 +141,8 @@ PPC_OP(glue(lwarx, MEMSUFFIX))
do_queue_exception(EXCP_ALIGN);
do_process_exceptions();
} else {
- glue(ldl, MEMSUFFIX)((void *)T0);
- regs->reserve = T0 & ~0x03;
+ T1 = glue(ldl, MEMSUFFIX)((void *)T0);
+ regs->reserve = T0;
}
RETURN();
}