From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TShJ8-0001Br-Od for qemu-devel@nongnu.org; Mon, 29 Oct 2012 00:50:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TShJ7-0000r7-LW for qemu-devel@nongnu.org; Mon, 29 Oct 2012 00:50:38 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:49498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TShJ7-0000r1-FE for qemu-devel@nongnu.org; Mon, 29 Oct 2012 00:50:37 -0400 Received: by mail-pa0-f45.google.com with SMTP id fb10so2973002pad.4 for ; Sun, 28 Oct 2012 21:50:36 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Mon, 29 Oct 2012 15:50:20 +1100 Message-Id: <1351486220-26216-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH] target-sparc: Revert setting cpu_dst to gen_dest_gpr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Aurelien Jarno There is some read-after-write error within the OP=2 insns which prevents setting cpu_dst to the real output register. Until this is found and fixed, always write to a temporary first. Cc: Blue Swirl Cc: Aurelien Jarno Signed-off-by: Richard Henderson --- 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 4321393..9e46f14 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -2633,7 +2633,7 @@ static void disas_sparc_insn(DisasContext * dc, unsigned int insn) case 2: /* FPU & Logical Operations */ { unsigned int xop = GET_FIELD(insn, 7, 12); - TCGv cpu_dst = gen_dest_gpr(dc, rd); + TCGv cpu_dst = get_temp_tl(dc); TCGv cpu_tmp0; if (xop == 0x3a) { /* generate trap */ -- 1.7.11.7