Commit 76b3030c56bcc6b95bb71413d3a5024c22dd4c33
1 parent
265d3497
mipsel disas fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1705 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
0 deletions
disas.c
@@ -187,7 +187,11 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags) | @@ -187,7 +187,11 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags) | ||
187 | #endif | 187 | #endif |
188 | print_insn = print_insn_ppc; | 188 | print_insn = print_insn_ppc; |
189 | #elif defined(TARGET_MIPS) | 189 | #elif defined(TARGET_MIPS) |
190 | +#ifdef TARGET_WORDS_BIGENDIAN | ||
190 | print_insn = print_insn_big_mips; | 191 | print_insn = print_insn_big_mips; |
192 | +#else | ||
193 | + print_insn = print_insn_little_mips; | ||
194 | +#endif | ||
191 | #elif defined(TARGET_M68K) | 195 | #elif defined(TARGET_M68K) |
192 | print_insn = print_insn_m68k; | 196 | print_insn = print_insn_m68k; |
193 | #else | 197 | #else |
@@ -381,7 +385,11 @@ void monitor_disas(CPUState *env, | @@ -381,7 +385,11 @@ void monitor_disas(CPUState *env, | ||
381 | #endif | 385 | #endif |
382 | print_insn = print_insn_ppc; | 386 | print_insn = print_insn_ppc; |
383 | #elif defined(TARGET_MIPS) | 387 | #elif defined(TARGET_MIPS) |
388 | +#ifdef TARGET_WORDS_BIGENDIAN | ||
384 | print_insn = print_insn_big_mips; | 389 | print_insn = print_insn_big_mips; |
390 | +#else | ||
391 | + print_insn = print_insn_little_mips; | ||
392 | +#endif | ||
385 | #elif defined(TARGET_M68K) | 393 | #elif defined(TARGET_M68K) |
386 | print_insn = print_insn_m68k; | 394 | print_insn = print_insn_m68k; |
387 | #else | 395 | #else |