monitor: QEMU Monitor Instruction Disassembly Incorrect for PowerPC LE Mode
authorTom Musta <tommusta@gmail.com>
Wed, 9 Apr 2014 19:53:24 +0000 (14:53 -0500)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:26 +0000 (13:24 +0200)
commit1c38f84373dd0a360883a343f6f50a5c0c856dec
tree19130e37326cfec35888cc614b39fe3a3808d81f
parente13951f8962a069d3172c1bd22f44a4cf5d2c1c9
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>
disas.c
monitor.c