path: root/disas.c
diff options
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-23 18:16:07 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-23 18:16:07 +0000
commit111bfab3b5c6a47a7182e095647e6a5e0e17feb8 (patch)
tree7ff41315c47fc137d03a92d42acc7333965544f0 /disas.c
parentc7d344af8fb308975f941de1640b917e1b085a81 (diff)
This patch adds little-endian mode support to PPC emulation.
This is needed by OS/2 and Windows NT and some programs like VirtualPC. This patch has been tested using OS/2 bootloader (thanks to Tero Kaarlela). (Jocelyn Mayer) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1379 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'disas.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/disas.c b/disas.c
index 7005716c1..8754713a8 100644
--- a/disas.c
+++ b/disas.c
@@ -141,6 +141,8 @@ void target_disas(FILE *out, target_ulong code, target_ulong size, int flags)
#elif defined(TARGET_SPARC)
print_insn = print_insn_sparc;
#elif defined(TARGET_PPC)
+ if (cpu_single_env->msr[MSR_LE])
+ disasm_info.endian = BFD_ENDIAN_LITTLE;
print_insn = print_insn_ppc;
fprintf(out, "0x" TARGET_FMT_lx