diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-14 20:56:43 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-25 07:11:17 -0700 |
commit | 8c6ec412b450ad790fc373674a34313c8f6e3f6e (patch) | |
tree | 882cbd362c562a41f3eb689a6a45b3d95e19a69c /drivers/bios_emulator/x86emu/ops2.c | |
parent | b3521f2e495c8cd91226af9b34f2d7ef5a24c665 (diff) | |
download | blackbird-obmc-uboot-8c6ec412b450ad790fc373674a34313c8f6e3f6e.tar.gz blackbird-obmc-uboot-8c6ec412b450ad790fc373674a34313c8f6e3f6e.zip |
bios_emulator: Always print errors when opcode decode fails
This is a rare event and should not happen. When it does it is confusing to
work out why. At least we should print a message.
Adjust the emulator to always print decode errors to the console.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bios_emulator/x86emu/ops2.c')
-rw-r--r-- | drivers/bios_emulator/x86emu/ops2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bios_emulator/x86emu/ops2.c b/drivers/bios_emulator/x86emu/ops2.c index 59dbb422dd..be4ef36443 100644 --- a/drivers/bios_emulator/x86emu/ops2.c +++ b/drivers/bios_emulator/x86emu/ops2.c @@ -58,7 +58,7 @@ void x86emuOp2_illegal_op( u8 op2) { START_OF_INSTR(); - DECODE_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); + ERR_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); TRACE_REGS(); printk("%04x:%04x: %02X ILLEGAL EXTENDED X86 OPCODE!\n", M.x86.R_CS, M.x86.R_IP-2,op2); @@ -1089,7 +1089,7 @@ void x86emuOp2_btX_I(u8 X86EMU_UNUSED(op2)) DECODE_PRINTF("BTC\t"); break; default: - DECODE_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); + ERR_PRINTF("ILLEGAL EXTENDED X86 OPCODE\n"); TRACE_REGS(); printk("%04x:%04x: %02X%02X ILLEGAL EXTENDED X86 OPCODE EXTENSION!\n", M.x86.R_CS, M.x86.R_IP-3,op2, (mod<<6)|(rh<<3)|rl); |