Skip to content

Ghidra is a software reverse engineering (SRE) framework

GT-3467: Corrected tricore store bit instruction

ghidorahrex463d5f2bf8d7
diff --git a/Ghidra/Processors/tricore/data/languages/tricore.sinc b/Ghidra/Processors/tricore/data/languages/tricore.sinc
index f646fbbfbe..af53447b1e 100644
--- a/Ghidra/Processors/tricore/data/languages/tricore.sinc
+++ b/Ghidra/Processors/tricore/data/languages/tricore.sinc
@@ -7941,9 +7941,9 @@ macro multiply_u_u(mres0, rega, regb, n) {
# ST.T off18, bpos3, b (ABSB)
:st.t off18,const0810Z,const1111Z is PCPMode=0 & ( const0810Z & const1111Z & op0007=0xd5 ; op2627=0x0 ) & off18
{
- local tmp:4 = 1 << const0810Z;
- tmp = tmp | (const1111Z << const0810Z);
- *[ram]:1 off18 = *[ram]:1 off18 & ~tmp[0,8];
+ local tmp:4 = *[ram]:1 off18;
+ tmp = (tmp & ~(1 << const0810Z)) | (const1111Z << const0810Z);
+ *[ram]:1 off18 = tmp;
}
@if defined(TRICORE_RIDER_B) || defined(TRICORE_RIDER_D) || defined(TRICORE_V2)