Received: from eggs.gnu.org ([208.118.235.92]:42395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOGZ1-0006bX-6P for qemu-devel@nongnu.org; Tue, 16 Oct 2012 19:28:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOGZ0-0006IH-3Y for qemu-devel@nongnu.org; Tue, 16 Oct 2012 19:28:43 -0400 Received: from hall.aurel32.net ([88.191.126.93]:52906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOGYz-0006I9-Tw for qemu-devel@nongnu.org; Tue, 16 Oct 2012 19:28:42 -0400 From: Aurelien Jarno Date: Wed, 17 Oct 2012 01:28:35 +0200 Message-Id: <1350430115-23724-2-git-send-email-aurelien@aurel32.net> In-Reply-To: <1350430115-23724-1-git-send-email-aurelien@aurel32.net> References: <1350430115-23724-1-git-send-email-aurelien@aurel32.net> Subject: [Qemu-devel] [PATCH 2/2] target-sparc: fix FMOVr instruction List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Aurelien Jarno Like the MOVr instruction, the FMOVr instruction has the condition encoded between bits 10 and 12. Cc: Blue Swirl Signed-off-by: Aurelien Jarno --- target-sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 6cef96b..6d05e7d 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -3154,7 +3154,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) #define FMOVR(sz) \ do { \ DisasCompare cmp; \ - cond = GET_FIELD_SP(insn, 14, 17); \ + cond = GET_FIELD_SP(insn, 10, 12); \ cpu_src1 = get_src1(insn, cpu_src1); \ gen_compare_reg(&cmp, cond, cpu_src1); \ gen_fmov##sz(dc, &cmp, rd, rs2); \ -- 1.7.10.4