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) | |
| download | focaccia-qemu-111bfab3b5c6a47a7182e095647e6a5e0e17feb8.tar.gz focaccia-qemu-111bfab3b5c6a47a7182e095647e6a5e0e17feb8.zip | |
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
diff --git a/disas.c b/disas.c index 7005716c15..8754713a81 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; #else fprintf(out, "0x" TARGET_FMT_lx |