Fix a really stupid bug in the [ls]d[lr] emulation, by Herve Poussineau.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 5 May 2007 20:13:13 +0000 (20:13 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 5 May 2007 20:13:13 +0000 (20:13 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2773 c046a42c-6fe2-441c-8c8c-71466251a162

target-mips/op_helper_mem.c

index 56eeaadd044cb7d5d4b4fdbe9f454be73712a3a5..8663d9a52a4d5e9f426c3ad1b55ef35f5c5d0306 100644 (file)
@@ -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)