target-arm: make RFE usable with any register
authorAdam Lackorzynski <adam@os.inf.tu-dresden.de>
Tue, 2 Mar 2010 00:17:35 +0000 (01:17 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 11:01:29 +0000 (12:01 +0100)
The rfe instruction can be used with any register, not just sp. Adjust the
condition check accordingly.

Signed-off-by: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/translate.c

index 0c650b2..cdfe946 100644 (file)
@@ -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))