Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-6699: Fixed SuperH4 bsr instruction return address

ghidorahrex154f9fb0ca5d
diff --git a/Ghidra/Processors/SuperH4/data/languages/SuperH4.sinc b/Ghidra/Processors/SuperH4/data/languages/SuperH4.sinc
index 1b0e76cda8..a0dac54792 100644
--- a/Ghidra/Processors/SuperH4/data/languages/SuperH4.sinc
+++ b/Ghidra/Processors/SuperH4/data/languages/SuperH4.sinc
@@ -749,7 +749,7 @@ N_0txx: r0",@"^N_0 is r0 & N_0 { tmp:4 = N_0; export tmp; }
# text bsr <bdisp12>
# arch arch_sh_up
:bsr I_1tbranch is OP_0=0xb & I_1tbranch {
-
+ PR = inst_next;
delayslot(1);
call I_1tbranch;
}