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 | 187 | #endif |
| 188 | 188 | print_insn = print_insn_ppc; |
| 189 | 189 | #elif defined(TARGET_MIPS) |
| 190 | +#ifdef TARGET_WORDS_BIGENDIAN | |
| 190 | 191 | print_insn = print_insn_big_mips; |
| 192 | +#else | |
| 193 | + print_insn = print_insn_little_mips; | |
| 194 | +#endif | |
| 191 | 195 | #elif defined(TARGET_M68K) |
| 192 | 196 | print_insn = print_insn_m68k; |
| 193 | 197 | #else |
| ... | ... | @@ -381,7 +385,11 @@ void monitor_disas(CPUState *env, |
| 381 | 385 | #endif |
| 382 | 386 | print_insn = print_insn_ppc; |
| 383 | 387 | #elif defined(TARGET_MIPS) |
| 388 | +#ifdef TARGET_WORDS_BIGENDIAN | |
| 384 | 389 | print_insn = print_insn_big_mips; |
| 390 | +#else | |
| 391 | + print_insn = print_insn_little_mips; | |
| 392 | +#endif | |
| 385 | 393 | #elif defined(TARGET_M68K) |
| 386 | 394 | print_insn = print_insn_m68k; |
| 387 | 395 | #else | ... | ... |