From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSpo0-0004hX-Eh for qemu-devel@nongnu.org; Mon, 29 Oct 2012 09:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSpny-0002O3-Ja for qemu-devel@nongnu.org; Mon, 29 Oct 2012 09:55:04 -0400 Received: from hall.aurel32.net ([88.191.126.93]:36899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSpny-0002LS-By for qemu-devel@nongnu.org; Mon, 29 Oct 2012 09:55:02 -0400 Date: Mon, 29 Oct 2012 14:54:55 +0100 From: Aurelien Jarno Message-ID: <20121029135455.GA28797@ohm.aurel32.net> References: <1351486220-26216-1-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1351486220-26216-1-git-send-email-rth@twiddle.net> Subject: Re: [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: Richard Henderson Cc: Blue Swirl , qemu-devel@nongnu.org On Mon, Oct 29, 2012 at 03:50:20PM +1100, Richard Henderson wrote: > 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 */ Tested-by: Aurelien Jarno -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net