Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge remote-tracking branch 'origin/GP-33_emteere_PR-1766_mumbel_mips-rfe' into patch

ghidra132ae57e3125b
diff --cc Ghidra/Processors/MIPS/data/languages/mips32Instructions.sinc
index 9b45032b67,061a5a72bc..e3b7acc0d2
--- a/Ghidra/Processors/MIPS/data/languages/mips32Instructions.sinc
+++ b/Ghidra/Processors/MIPS/data/languages/mips32Instructions.sinc
@@@ -184,6 -184,13 +184,13 @@@ define pcodeop special2
Status = Status | 1;
}
-# MIPS R3000 only, replaced with ERET >= R4000
++# MIPS R3000 and prior only, replaced with ERET in R4000 and later
+ # 0100 0010 0000 0000 0000 0000 0001 0000
+ :rfe is $(AMODE) & prime=0x10 & fct=0x10 & bit25=1 & copfill=0 {
+ local currentStatus = Status;
+ Status = (currentStatus & 0xfffffff0) | ((currentStatus & 0x3c) >> 2);
+ }
+
# 0100 0010 0000 0000 0000 0000 0001 1000
:eret is $(AMODE) & prime=0x10 & fct=0x18 & bit25=1 & copfill=0 {
return[EPC];