Fix tricore relocation 24REL handling

This commit is contained in:
lmulert@emproof.de
2025-02-28 14:32:47 +01:00
committed by Ryan Kurtz
parent 45552147ec
commit 334eecbd16
@@ -355,8 +355,7 @@ public class Tricore_ElfRelocationHandler
*/
private int relocate_relB(Memory memory, Address relocationAddress, long rv)
throws MemoryAccessException {
// TODO ff000000..00fffffe?
long mask = 0xfffffffeL;
long mask = 0x00000001L;
long val = ~mask & rv;
int iw = memory.getInt(relocationAddress) & 0xff;
iw |= ((val & 0x1fffe) << 15);