From patchwork Fri May 21 15:30:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 53173 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 9E4BAB7D19 for ; Sat, 22 May 2010 01:42:57 +1000 (EST) Received: from localhost ([127.0.0.1]:38406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFUNB-0000hk-D5 for incoming@patchwork.ozlabs.org; Fri, 21 May 2010 11:42:53 -0400 Received: from [140.186.70.92] (port=53133 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFUBa-0000u9-59 for qemu-devel@nongnu.org; Fri, 21 May 2010 11:31:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFUBQ-0003Jh-09 for qemu-devel@nongnu.org; Fri, 21 May 2010 11:30:53 -0400 Received: from are.twiddle.net ([75.149.56.221]:52871) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFUBP-0003JO-QF for qemu-devel@nongnu.org; Fri, 21 May 2010 11:30:43 -0400 Received: from anchor.twiddle.home (anchor.twiddle.home [172.31.0.4]) by are.twiddle.net (Postfix) with ESMTPS id 44DB3F1E; Fri, 21 May 2010 08:30:43 -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 o4LFUgOd018050; Fri, 21 May 2010 08:30:42 -0700 Received: (from rth@localhost) by anchor.twiddle.home (8.14.4/8.14.4/Submit) id o4LFUgM9018049; Fri, 21 May 2010 08:30:42 -0700 From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 21 May 2010 08:30:25 -0700 Message-Id: <8d18d09b36f8158ee5e9f598999997cafdbbee12.1274455111.git.rth@twiddle.net> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: aurelien@aurel32.net Subject: [Qemu-devel] [PATCH 05/15] 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 --- 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 bc5985f..1d227db 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -173,6 +173,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_MOVSBL (0xbe | P_EXT) #define OPC_MOVSWL (0xbf | P_EXT) #define OPC_MOVZBL (0xb6 | P_EXT) @@ -300,7 +301,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); } }