Received: from eggs.gnu.org ([208.118.235.92]:42157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SR7eP-0006cY-TT for qemu-devel@nongnu.org; Sun, 06 May 2012 16:01:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SR7eO-00071h-7A for qemu-devel@nongnu.org; Sun, 06 May 2012 16:01:49 -0400 Date: Mon, 7 May 2012 00:01:41 +0400 (MSK) From: malc In-Reply-To: <1336333113-773-1-git-send-email-andreas.faerber@web.de> Message-ID: References: <1336333113-773-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [RFC] tcg/ppc: Do not overwrite lower address word on Darwin and AIX List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org On Sun, 6 May 2012, Andreas F?rber wrote: > For targets where TARGET_LONG_BITS != 32, i.e. 64-bit guests, > addr_reg is moved to r4. For hosts with TCG_TARGET_CALL_ALIGN_ARGS > either data_reg2 or data_reg or a masked version thereof would overwrite > r4. Place it in r5 instead, matching TCG_TARGET_CALL_ALIGN_ARGS hosts. > > This might explain crashes observed on Darwin/ppc but not on ppc64. > > Signed-off-by: Andreas F?rber > --- > tcg/ppc/tcg-target.c | 4 ---- > 1 files changed, 0 insertions(+), 4 deletions(-) > > diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c > index dc40716..4b85c89 100644 > --- a/tcg/ppc/tcg-target.c > +++ b/tcg/ppc/tcg-target.c > @@ -816,11 +816,7 @@ static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc) > #else > tcg_out_mov (s, TCG_TYPE_I32, 3, addr_reg2); > tcg_out_mov (s, TCG_TYPE_I32, 4, addr_reg); > -#ifdef TCG_TARGET_CALL_ALIGN_ARGS > ir = 5; > -#else > - ir = 4; > -#endif > #endif > > switch (opc) { > Right you are. -- mailto:av1474@comtv.ru