summaryrefslogtreecommitdiffstats
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-05 20:13:13 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-05 20:13:13 +0000
commit9aca99a06d68ba2a84ff8a0f9bd337402fd5ffe5 (patch)
treeec3f042cd9d939fbccac919f9156172e4ae06894 /target-mips
parent608e8ce280cee231b3de0e7922060efd23447a54 (diff)
downloadhqemu-9aca99a06d68ba2a84ff8a0f9bd337402fd5ffe5.zip
hqemu-9aca99a06d68ba2a84ff8a0f9bd337402fd5ffe5.tar.gz
Fix a really stupid bug in the [ls]d[lr] emulation, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2773 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/op_helper_mem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-mips/op_helper_mem.c b/target-mips/op_helper_mem.c
index 56eeaad..8663d9a 100644
--- a/target-mips/op_helper_mem.c
+++ b/target-mips/op_helper_mem.c
@@ -126,10 +126,10 @@ uint32_t glue(do_swr, MEMSUFFIX) (uint32_t tmp)
#ifdef TARGET_MIPS64
-# ifdef TARGET_WORDS_BIGENDIAN
-#define GET_LMASK64(v) ((v) & 4)
+#ifdef TARGET_WORDS_BIGENDIAN
+#define GET_LMASK64(v) ((v) & 7)
#else
-#define GET_LMASK64(v) (((v) & 4) ^ 4)
+#define GET_LMASK64(v) (((v) & 7) ^ 7)
#endif
void glue(do_ldl, MEMSUFFIX) (uint64_t tmp)
OpenPOWER on IntegriCloud