mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-20 20:04:46 +00:00
bios_emulator: fix garbled printing of disassembled SET* instructions
When DEBUG_DECODE_F is enabled in bios_emulator, the printing of SET{O,NO,B,NB,Z,NZ,BE,NBE,S,NS,P,TP,L,NL,LE,NLE} instructions is not followed by newline and is, therefore, immediately followed by the printed address of a new instruction. This garbles the output and makes it very difficult to read. This patch adds missing DECODE_PRINTF("\n") calls to print newlines. Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
This commit is contained in:
parent
15c1b2f974
commit
82a59b45d3
1 changed files with 2 additions and 0 deletions
|
@ -245,10 +245,12 @@ void x86emuOp2_set_byte(u8 op2)
|
||||||
FETCH_DECODE_MODRM(mod, rh, rl);
|
FETCH_DECODE_MODRM(mod, rh, rl);
|
||||||
if (mod < 3) {
|
if (mod < 3) {
|
||||||
destoffset = decode_rmXX_address(mod, rl);
|
destoffset = decode_rmXX_address(mod, rl);
|
||||||
|
DECODE_PRINTF("\n");
|
||||||
TRACE_AND_STEP();
|
TRACE_AND_STEP();
|
||||||
store_data_byte(destoffset, cond ? 0x01 : 0x00);
|
store_data_byte(destoffset, cond ? 0x01 : 0x00);
|
||||||
} else { /* register to register */
|
} else { /* register to register */
|
||||||
destreg = DECODE_RM_BYTE_REGISTER(rl);
|
destreg = DECODE_RM_BYTE_REGISTER(rl);
|
||||||
|
DECODE_PRINTF("\n");
|
||||||
TRACE_AND_STEP();
|
TRACE_AND_STEP();
|
||||||
*destreg = cond ? 0x01 : 0x00;
|
*destreg = cond ? 0x01 : 0x00;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue