From ea825eeefdbbceb7eadb61986e3ab9ad17ebeab8 Mon Sep 17 00:00:00 2001 From: Adam Lackorzynski Date: Tue, 2 Mar 2010 01:17:35 +0100 Subject: [PATCH] target-arm: make RFE usable with any register The rfe instruction can be used with any register, not just sp. Adjust the condition check accordingly. Signed-off-by: Adam Lackorzynski Signed-off-by: Aurelien Jarno --- target-arm/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 0c650b2728..cdfe946a6d 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -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))