diff options
author | bellard <bellard> | 2005-04-23 18:16:07 +0000 |
---|---|---|
committer | bellard <bellard> | 2005-04-23 18:16:07 +0000 |
commit | f569b500c670059264efd248266b205adfe77f21 (patch) | |
tree | 984e9850426743ee3b18eaeb77bce6a4ce9ee94a /qemu/disas.c | |
parent | bb1ed2ed3297cd5424bf9ff3ee5fbc8c7dd190e5 (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)
Diffstat (limited to 'qemu/disas.c')
-rw-r--r-- | qemu/disas.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu/disas.c b/qemu/disas.c index 7005716c..8754713a 100644 --- a/qemu/disas.c +++ b/qemu/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; #else fprintf(out, "0x" TARGET_FMT_lx |