From 28fbe299c3048caf845a26c4dc2027acabdaa689 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 21 Feb 2004 14:13:13 +0000 Subject: [PATCH] lwarx fix (Jocelyn Mayer) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@629 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/op_mem.h | 4 ++-- 1 file 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(); }