diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-23 18:16:07 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-04-23 18:16:07 +0000 |
commit | 111bfab3b5c6a47a7182e095647e6a5e0e17feb8 (patch) | |
tree | 7ff41315c47fc137d03a92d42acc7333965544f0 /disas.c | |
parent | c7d344af8fb308975f941de1640b917e1b085a81 (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')
-rw-r--r-- | disas.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |