Received: from [140.186.70.92] (port=47295 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI4CH-0008Ac-1G for qemu-devel@nongnu.org; Fri, 28 May 2010 14:22:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI4C4-0006I1-Ud for qemu-devel@nongnu.org; Fri, 28 May 2010 14:22:09 -0400 Received: from hall.aurel32.net ([88.191.82.174]:52355) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI4C4-0006Hs-Nw for qemu-devel@nongnu.org; Fri, 28 May 2010 14:22:04 -0400 Date: Fri, 28 May 2010 20:22:03 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 2/2] tcg: Use INDEX_op_qemu_ld32 for 32-bit results. Message-ID: <20100528182203.GB4621@ohm.aurel32.net> References: <1272929448-4223-1-git-send-email-rth@twiddle.net> <1272929448-4223-3-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1272929448-4223-3-git-send-email-rth@twiddle.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Mon, May 03, 2010 at 04:30:48PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson Thanks, applied. > --- > tcg/tcg-op.h | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h > index bafac2b..aa436de 100644 > --- a/tcg/tcg-op.h > +++ b/tcg/tcg-op.h > @@ -2172,12 +2172,20 @@ static inline void tcg_gen_qemu_ld16s(TCGv ret, TCGv addr, int mem_index) > > static inline void tcg_gen_qemu_ld32u(TCGv ret, TCGv addr, int mem_index) > { > +#if TARGET_LONG_BITS == 32 > + tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32, ret, addr, mem_index); > +#else > tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32u, ret, addr, mem_index); > +#endif > } > > static inline void tcg_gen_qemu_ld32s(TCGv ret, TCGv addr, int mem_index) > { > +#if TARGET_LONG_BITS == 32 > + tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32, ret, addr, mem_index); > +#else > tcg_gen_qemu_ldst_op(INDEX_op_qemu_ld32s, ret, addr, mem_index); > +#endif > } > > static inline void tcg_gen_qemu_ld64(TCGv_i64 ret, TCGv addr, int mem_index) > -- > 1.7.0.1 > > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net