From patchwork Mon May 3 23:30:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 51545 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6A155B7D1E for ; Tue, 4 May 2010 09:45:40 +1000 (EST) Received: from localhost ([127.0.0.1]:41992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O95BG-0006jy-88 for incoming@patchwork.ozlabs.org; Mon, 03 May 2010 19:36:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O95A6-0006jt-BQ for qemu-devel@nongnu.org; Mon, 03 May 2010 19:34:54 -0400 Received: from [140.186.70.92] (port=60631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O957o-00069m-Ga for qemu-devel@nongnu.org; Mon, 03 May 2010 19:34:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O956C-0003Ox-TL for qemu-devel@nongnu.org; Mon, 03 May 2010 19:30:54 -0400 Received: from are.twiddle.net ([75.149.56.221]:45202) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O956C-0003On-Nj for qemu-devel@nongnu.org; Mon, 03 May 2010 19:30:52 -0400 Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPS id 2190080C for ; Mon, 3 May 2010 16:30:52 -0700 (PDT) Received: from anchor.twiddle.home (anchor.twiddle.home [127.0.0.1]) by anchor.twiddle.home (8.14.4/8.14.4) with ESMTP id o43NUpDY004322 for ; Mon, 3 May 2010 16:30:51 -0700 Received: (from rth@localhost) by anchor.twiddle.home (8.14.4/8.14.4/Submit) id o43NUpjW004321 for qemu-devel@nongnu.org; Mon, 3 May 2010 16:30:51 -0700 From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 3 May 2010 16:30:48 -0700 Message-Id: <1272929448-4223-3-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: <1272929448-4223-1-git-send-email-rth@twiddle.net> References: <1272929448-4223-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 2/2] tcg: Use INDEX_op_qemu_ld32 for 32-bit results. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Richard Henderson --- 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)