Commit a6f816d697f7d47611980d9bbf74f003698eff77

Authored by bellard
1 parent 0ad041d4

fixed endianness (Jocelyn Mayer)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@285 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
ppc-dis.c
... ... @@ -3074,7 +3074,8 @@ static int print_insn_powerpc(FILE *, unsigned long insn, unsigned memaddr, int
3074 3074  
3075 3075 int print_insn_ppc (bfd_vma pc, disassemble_info *info)
3076 3076 {
3077   - return print_insn_powerpc (info->stream, *(unsigned *)(long)pc, pc,
  3077 + return print_insn_powerpc (info->stream,
  3078 + (unsigned int)bfd_getb32((bfd_byte *)pc), pc,
3078 3079 PPC_OPCODE_PPC | PPC_OPCODE_601);
3079 3080 }
3080 3081  
... ...