Skip to content

Ghidra is a software reverse engineering (SRE) framework

fix pcode generated for STR wrap, required STR in ifdef, fix STR (Closes #6156)

Grouzy587fd67b03bf
diff --git a/Ghidra/Processors/x86/data/languages/ia.sinc b/Ghidra/Processors/x86/data/languages/ia.sinc
index 926e96d82a..9397068b22 100644
--- a/Ghidra/Processors/x86/data/languages/ia.sinc
+++ b/Ghidra/Processors/x86/data/languages/ia.sinc
@@ -4268,6 +4268,17 @@ define pcodeop skinit;
@endif
:STR rm16 is vexMode=0 & byte=0xf; byte=0x0; rm16 & reg_opcode=1 ... { rm16 = TaskRegister(); }
+:STR Rmr32 is vexMode=0 & opsize=1 & byte=0xf; byte=0x0; Rmr32 & mod=3 & reg_opcode=1 & check_Rmr32_dest {
+ local tmp:2 = TaskRegister();
+ Rmr32 = zext(tmp);
+ build check_Rmr32_dest;
+}
+@ifdef IA64
+:STR Rmr64 is $(LONGMODE_ON) & vexMode=0 & opsize=2 & byte=0xf; byte=0x0; Rmr64 & mod=3 & reg_opcode=1 {
+ local tmp:2 = TaskRegister();
+ Rmr64 = zext(tmp);
+}
+@endif
# See 'lockable.sinc' for memory destination, lockable variants