From 111bfab3b5c6a47a7182e095647e6a5e0e17feb8 Mon Sep 17 00:00:00 2001 From: bellard Date: Sat, 23 Apr 2005 18:16:07 +0000 Subject: 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 --- disas.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'disas.c') diff --git a/disas.c b/disas.c index 7005716..8754713 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 -- cgit v1.1