Commit 9aca99a06d68ba2a84ff8a0f9bd337402fd5ffe5
1 parent
608e8ce2
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
Showing
1 changed file
with
3 additions
and
3 deletions
target-mips/op_helper_mem.c
... | ... | @@ -126,10 +126,10 @@ uint32_t glue(do_swr, MEMSUFFIX) (uint32_t tmp) |
126 | 126 | |
127 | 127 | #ifdef TARGET_MIPS64 |
128 | 128 | |
129 | -# ifdef TARGET_WORDS_BIGENDIAN | |
130 | -#define GET_LMASK64(v) ((v) & 4) | |
129 | +#ifdef TARGET_WORDS_BIGENDIAN | |
130 | +#define GET_LMASK64(v) ((v) & 7) | |
131 | 131 | #else |
132 | -#define GET_LMASK64(v) (((v) & 4) ^ 4) | |
132 | +#define GET_LMASK64(v) (((v) & 7) ^ 7) | |
133 | 133 | #endif |
134 | 134 | |
135 | 135 | void glue(do_ldl, MEMSUFFIX) (uint64_t tmp) | ... | ... |