Skip to contentSkip to conversation

arm: make RFE usable with any register

PATCH Applied Adam Lackorzynski 2 participants 2 messages Mar 2, 2010 – Mar 13, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: make RFE usable with any register

The rfe instruction can be used with any register, not just sp. Adjust the condition check accordingly.

---
 target-arm/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-arm/translate.c +1 -1
index 0c650b2..cdfe946 100644
@@ -6132,7 +6132,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s)
                 dead_tmp(addr);
             }
             return;
-        } else if ((insn & 0x0e5fffe0) == 0x081d0a00) {
+        } else if ((insn & 0x0e50ffe0) == 0x08100a00) {
             /* rfe */
             int32_t offset;
             if (IS_USER(s))
Signature · 6 lines
1.7.0

Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
#1 lore raw
Quoted 4 lines · Adam Lackorzynski

The rfe instruction can be used with any register, not just sp. Adjust the condition check accordingly.

Thanks, applied.

Quoted 27 lines
---
 target-arm/translate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
target-arm/translate.c +1 -1
index 0c650b2..cdfe946 100644
@@ -6132,7 +6132,7 @@ static void disas_arm_insn(CPUState * env, DisasContext *s)
                 dead_tmp(addr);
             }
             return;
-        } else if ((insn & 0x0e5fffe0) == 0x081d0a00) {
+        } else if ((insn & 0x0e50ffe0) == 0x08100a00) {
             /* rfe */
             int32_t offset;
             if (IS_USER(s))
Signature · 6 lines
1.7.0

Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net