]> git.ipfire.org Git - thirdparty/valgrind.git/commit
mips: treat delay slot as part of the previous instruction
authorStefan Maksimovic <stefan.maksimovic@rt-rk.com>
Fri, 17 Apr 2020 17:54:58 +0000 (17:54 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 17 Apr 2020 17:54:58 +0000 (17:54 +0000)
commitddc311558e11c47a06ba996a7d075b336726fc0b
treedc1022fbed1147abc3f8edba31cd8bd155b34d2e
parent40187fcd61ee877f78701c46a74ac1dadbe65b3d
mips: treat delay slot as part of the previous instruction

Do so by recursively calling disInstr_MIPS_WRK() if the instruction
currently being disassembled is a branch/jump, effectively combining them
into one IR instruction.

A notable change is that the branch/jump + delay slot combination now forms
an eight-byte instruction.

This is related to KDE #417187.

This fixes drd/tests/annotate_hbefore on mips.
VEX/priv/guest_mips_toIR.c
include/pub_tool_machine.h