diff options
| author | Yuri Zaporozhets <yuriz@qrv-systems.net> | 2024-11-30 21:56:25 +0100 | 
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-12-15 11:39:21 -0600 | 
| commit | 5fb5180a1616b714a289ae4c8ff447e5ee0bddb0 (patch) | |
| tree | b173264bbffcc1f9db661977bfc57f4c78dc4913 /drivers/ddr/altera | |
| parent | 82a59b45d3fc720831eaacd5b76c796c00912832 (diff) | |
bios_emulator: fix incorrect printing of address in "call near immediate"
In the x86emuOp_call_near_IMM() function the address of CALL is
printed incorrectly when jumping backwards. For example, the correct
disassemble of the bytes below would be:
0000E8DE  E8DBFF            call 0xe8bc
(verified by ndisasm). But instead the address is printed as "ffffe8bc".
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>
Diffstat (limited to 'drivers/ddr/altera')
0 files changed, 0 insertions, 0 deletions
