From patchwork Wed Apr 14 17:20:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 51204 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 C42DFB7D55 for ; Thu, 29 Apr 2010 05:18:38 +1000 (EST) Received: from localhost ([127.0.0.1]:46043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7CL4-0005lF-Kw for incoming@patchwork.ozlabs.org; Wed, 28 Apr 2010 14:50:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7C1i-0000Ls-0I for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:26 -0400 Received: from [140.186.70.92] (port=46631 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7C1X-0000Fv-7G for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7C1R-0004RD-Lx for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:15 -0400 Received: from are.twiddle.net ([75.149.56.221]:36487) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7C1R-0004Qp-Dp for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:09 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 43BFC1070; Wed, 28 Apr 2010 11:30:06 -0700 (PDT) Message-Id: <59ddf19670e0a31cf421e350965fb5da4d86fcbf.1272479073.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Wed, 14 Apr 2010 10:20:08 -0700 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 12/22] tcg-i386: Tidy movi. 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 Define and use OPC_MOVL_Iv. Signed-off-by: Richard Henderson Acked-by: Aurelien Jarno --- tcg/i386/tcg-target.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index b4e8e74..06946e5 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -178,6 +178,7 @@ static inline int tcg_target_const_match(tcg_target_long val, #define OPC_MOVB_EvGv (0x88) /* stores, more or less */ #define OPC_MOVL_EvGv (0x89) /* stores, more or less */ #define OPC_MOVL_GvEv (0x8b) /* loads, more or less */ +#define OPC_MOVL_Iv (0xb8) #define OPC_MOVZBL (0xb6 | P_EXT) #define OPC_MOVZWL (0xb7 | P_EXT) #define OPC_MOVSBL (0xbe | P_EXT) @@ -305,7 +306,7 @@ static inline void tcg_out_movi(TCGContext *s, TCGType type, if (arg == 0) { tgen_arithr(s, ARITH_XOR, ret, ret); } else { - tcg_out8(s, 0xb8 + ret); + tcg_out8(s, OPC_MOVL_Iv + ret); tcg_out32(s, arg); } }