mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-14 08:54:36 +00:00
bios_emulator: fix incorrect printing of address in "jump near immediate"
In the x86emuOp_jump_call_near_IMM() function the target address is printed incorrectly when jumping backwards. For example instead of "jmp 0xe8bc" the string "jmp ffffe8bc" is printed. That's because of the following macro: DECODE_PRINTF2("%04x\n", ip); while it should be DECODE_PRINTF2("%04x\n", (u16)ip); Signed-off-by: Yuri Zaporozhets <yuriz@qrv-systems.net>
This commit is contained in:
parent
5fb5180a16
commit
ae12873de7
1 changed files with 1 additions and 1 deletions
|
@ -4221,7 +4221,7 @@ void x86emuOp_jump_near_IMM(u8 X86EMU_UNUSED(op1))
|
|||
DECODE_PRINTF("JMP\t");
|
||||
ip = (s16)fetch_word_imm();
|
||||
ip += (s16)M.x86.R_IP;
|
||||
DECODE_PRINTF2("%04x\n", ip);
|
||||
DECODE_PRINTF2("%04x\n", (u16)ip);
|
||||
TRACE_AND_STEP();
|
||||
M.x86.R_IP = (u16)ip;
|
||||
DECODE_CLEAR_SEGOVR();
|
||||
|
|
Loading…
Add table
Reference in a new issue