forked from yath/ghidra-xtensa
Fix JX’s target.
Jump to where the register is pointing in RAM, not to the register.
This commit is contained in:
@@ -16,8 +16,7 @@ Or download a pre-built release and unzip it to `Ghidra/Processors`.
|
|||||||
|
|
||||||
# Bugs
|
# Bugs
|
||||||
|
|
||||||
* Some calculations are wrong, causing Ghidra to miscalculate a jump target.
|
* Probably a lot in instructions I did not yet happen to encouter. Pull requests
|
||||||
* Probably a lot of others in instructions I did not yet happen to encouter. Pull requests
|
|
||||||
appreciated.
|
appreciated.
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
@@ -521,7 +521,7 @@ macro extract_bit(val, bit, result) {
|
|||||||
|
|
||||||
# JX - Uncoditional Jump Register, pg. 368.
|
# JX - Uncoditional Jump Register, pg. 368.
|
||||||
:jx as is op2 = 0 & op1 = 0 & ar = 0 & as & u2_6.7 = 0b10 & u2_4.5 = 0b10 & op0 = 0 {
|
:jx as is op2 = 0 & op1 = 0 & ar = 0 & as & u2_6.7 = 0b10 & u2_4.5 = 0b10 & op0 = 0 {
|
||||||
goto as;
|
goto [as];
|
||||||
}
|
}
|
||||||
|
|
||||||
# L8UI - Load 8-bit Unsigned, pg. 369.
|
# L8UI - Load 8-bit Unsigned, pg. 369.
|
||||||
|
Reference in New Issue
Block a user