From a6f816d697f7d47611980d9bbf74f003698eff77 Mon Sep 17 00:00:00 2001 From: bellard Date: Thu, 26 Jun 2003 17:09:07 +0000 Subject: fixed endianness (Jocelyn Mayer) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@285 c046a42c-6fe2-441c-8c8c-71466251a162 --- ppc-dis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ppc-dis.c b/ppc-dis.c index 86e384f..d01dcd6 100644 --- a/ppc-dis.c +++ b/ppc-dis.c @@ -3074,7 +3074,8 @@ static int print_insn_powerpc(FILE *, unsigned long insn, unsigned memaddr, int int print_insn_ppc (bfd_vma pc, disassemble_info *info) { - return print_insn_powerpc (info->stream, *(unsigned *)(long)pc, pc, + return print_insn_powerpc (info->stream, + (unsigned int)bfd_getb32((bfd_byte *)pc), pc, PPC_OPCODE_PPC | PPC_OPCODE_601); } -- cgit v1.1