From patchwork Tue Mar 2 00:17:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Lackorzynski X-Patchwork-Id: 46620 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1823CB7E0D for ; Tue, 2 Mar 2010 11:20:53 +1100 (EST) Received: from localhost ([127.0.0.1]:44925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmFpC-0000k1-Kd for incoming@patchwork.ozlabs.org; Mon, 01 Mar 2010 19:18:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmFnx-0000g7-9r for qemu-devel@nongnu.org; Mon, 01 Mar 2010 19:17:41 -0500 Received: from [199.232.76.173] (port=37805 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmFnw-0000f4-Rg for qemu-devel@nongnu.org; Mon, 01 Mar 2010 19:17:40 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NmFnv-0001Mm-Nj for qemu-devel@nongnu.org; Mon, 01 Mar 2010 19:17:40 -0500 Received: from os.inf.tu-dresden.de ([141.76.48.99]:53800) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NmFnv-0001Mi-Dz for qemu-devel@nongnu.org; Mon, 01 Mar 2010 19:17:39 -0500 Received: from erwin.inf.tu-dresden.de ([141.76.48.80] helo=os.inf.tu-dresden.de) by os.inf.tu-dresden.de with esmtps (TLSv1:AES128-SHA:128) (Exim 4.71) id 1NmFnt-0004ss-Kb for qemu-devel@nongnu.org; Tue, 02 Mar 2010 01:17:37 +0100 Date: Tue, 2 Mar 2010 01:17:35 +0100 From: Adam Lackorzynski To: qemu-devel@nongnu.org Message-ID: <20100302001735.GB15814@os.inf.tu-dresden.de> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH] arm: make RFE usable with any register X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The rfe instruction can be used with any register, not just sp. Adjust the condition check accordingly. Signed-off-by: Adam Lackorzynski --- target-arm/translate.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 0c650b2..cdfe946 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))