mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
monitor: QEMU Monitor Instruction Disassembly Incorrect for PowerPC LE Mode
The monitor support for disassembling instructions does not honor the MSR[LE] bit for PowerPC processors. This change enhances the monitor_disas() routine by supporting a flag bit for Little Endian mode. Bit 16 is used since that bit was used in the analagous guest disassembly routine target_disas(). Also, to be consistent with target_disas(), the disassembler bfd_mach field can be passed in the flags argument. Reported-by: Anton Blanchard <anton@samba.org> Signed-off-by: Tom Musta <tommusta@gmail.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
e13951f896
commit
1c38f84373
2 changed files with 16 additions and 2 deletions
|
@ -1284,6 +1284,10 @@ static void memory_dump(Monitor *mon, int count, int format, int wsize,
|
|||
flags = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef TARGET_PPC
|
||||
flags = msr_le << 16;
|
||||
flags |= env->bfd_mach;
|
||||
#endif
|
||||
monitor_disas(mon, env, addr, count, is_physical, flags);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue