summaryrefslogtreecommitdiff
path: root/qemu/disas.c
diff options
context:
space:
mode:
authorbellard <bellard>2005-12-17 01:10:04 +0000
committerbellard <bellard>2005-12-17 01:10:04 +0000
commitd5c4c00853be09fd2111a9964e48dbf7aedb403c (patch)
tree742e203ca4468cb1c73a9b352f95bb4414063f46 /qemu/disas.c
parent37e54a0d288f9a76fd12eb4098719c3d039afac6 (diff)
mipsel disas fix
Diffstat (limited to 'qemu/disas.c')
-rw-r--r--qemu/disas.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/qemu/disas.c b/qemu/disas.c
index 78a72675..f8281b51 100644
--- a/qemu/disas.c
+++ b/qemu/disas.c
@@ -187,7 +187,11 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
#endif
print_insn = print_insn_ppc;
#elif defined(TARGET_MIPS)
+#ifdef TARGET_WORDS_BIGENDIAN
print_insn = print_insn_big_mips;
+#else
+ print_insn = print_insn_little_mips;
+#endif
#elif defined(TARGET_M68K)
print_insn = print_insn_m68k;
#else
@@ -381,7 +385,11 @@ void monitor_disas(CPUState *env,
#endif
print_insn = print_insn_ppc;
#elif defined(TARGET_MIPS)
+#ifdef TARGET_WORDS_BIGENDIAN
print_insn = print_insn_big_mips;
+#else
+ print_insn = print_insn_little_mips;
+#endif
#elif defined(TARGET_M68K)
print_insn = print_insn_m68k;
#else