aboutsummaryrefslogtreecommitdiff
path: root/ppc-dis.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-26 17:09:07 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-26 17:09:07 +0000
commita6f816d697f7d47611980d9bbf74f003698eff77 (patch)
tree496bf01b4fb04e5b6ed43b39bc6b0ff20f7eddde /ppc-dis.c
parent0ad041d47692326f4c7f472d396ebdbfe92e1664 (diff)
downloadqemu-a6f816d697f7d47611980d9bbf74f003698eff77.zip
qemu-a6f816d697f7d47611980d9bbf74f003698eff77.tar.gz
qemu-a6f816d697f7d47611980d9bbf74f003698eff77.tar.bz2
fixed endianness (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@285 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'ppc-dis.c')
-rw-r--r--ppc-dis.c3
1 files changed, 2 insertions, 1 deletions
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);
}