From patchwork Wed Apr 14 18:04:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 51207 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 1BFE1B7D43 for ; Thu, 29 Apr 2010 05:23:51 +1000 (EST) Received: from localhost ([127.0.0.1]:34849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7CrL-0006oN-Ss for incoming@patchwork.ozlabs.org; Wed, 28 Apr 2010 15:23:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7C1t-0000R1-41 for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:37 -0400 Received: from [140.186.70.92] (port=46682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7C1Z-0000HN-Vb for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7C1S-0004SC-0I for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:17 -0400 Received: from are.twiddle.net ([75.149.56.221]:36488) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7C1R-0004Qr-RR for qemu-devel@nongnu.org; Wed, 28 Apr 2010 14:30:09 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 5DE311073; Wed, 28 Apr 2010 11:30:06 -0700 (PDT) Message-Id: <6755a46434c6501911b23df1a588afa1a2b4ea0e.1272479073.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Wed, 14 Apr 2010 11:04:14 -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 15/22] tcg-i386: Tidy ret. 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_RET. 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 e82788d..27e9e9e 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -188,6 +188,7 @@ static inline int tcg_target_const_match(tcg_target_long val, #define OPC_PUSH_r32 (0x50) #define OPC_PUSH_Iv (0x68) #define OPC_PUSH_Ib (0x6a) +#define OPC_RET (0xc3) #define OPC_SHIFT_1 (0xd1) #define OPC_SHIFT_Ib (0xc1) #define OPC_SHIFT_cl (0xd3) @@ -1426,7 +1427,7 @@ void tcg_target_qemu_prologue(TCGContext *s) for(i = ARRAY_SIZE(tcg_target_callee_save_regs) - 1; i >= 0; i--) { tcg_out_pop(s, tcg_target_callee_save_regs[i]); } - tcg_out8(s, 0xc3); /* ret */ + tcg_out_opc(s, OPC_RET); } void tcg_target_init(TCGContext *s)