From patchwork Tue Apr 13 22:23:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 50179 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 109E8B7D40 for ; Thu, 15 Apr 2010 06:58:33 +1000 (EST) Received: from localhost ([127.0.0.1]:50522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O29Z8-0004fl-FK for incoming@patchwork.ozlabs.org; Wed, 14 Apr 2010 16:52:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O29XH-0004ZQ-CD for qemu-devel@nongnu.org; Wed, 14 Apr 2010 16:50:11 -0400 Received: from [140.186.70.92] (port=35340 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O29XB-0004UT-CV for qemu-devel@nongnu.org; Wed, 14 Apr 2010 16:50:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O29X8-0001Mo-2i for qemu-devel@nongnu.org; Wed, 14 Apr 2010 16:50:04 -0400 Received: from are.twiddle.net ([75.149.56.221]:41935) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O29X7-0001Ld-TP for qemu-devel@nongnu.org; Wed, 14 Apr 2010 16:50:02 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 4A32BC15; Wed, 14 Apr 2010 13:50:01 -0700 (PDT) Message-Id: <9c64ea3f89c151a903f16711b8993b10c6b6705d.1271277329.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Tue, 13 Apr 2010 15:23:53 -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 01/21] tcg-i386: Allocate call-saved registers first. 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/i386/tcg-target.c | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index e684b33..f5c24f7 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -36,16 +36,21 @@ static const char * const tcg_target_reg_names[TCG_TARGET_NB_REGS] = { #endif static const int tcg_target_reg_alloc_order[] = { - TCG_REG_EAX, - TCG_REG_EDX, - TCG_REG_ECX, TCG_REG_EBX, TCG_REG_ESI, TCG_REG_EDI, TCG_REG_EBP, + TCG_REG_ECX, + TCG_REG_EDX, + TCG_REG_EAX, +}; + +static const int tcg_target_call_iarg_regs[3] = { + TCG_REG_EAX, + TCG_REG_EDX, + TCG_REG_ECX }; -static const int tcg_target_call_iarg_regs[3] = { TCG_REG_EAX, TCG_REG_EDX, TCG_REG_ECX }; static const int tcg_target_call_oarg_regs[2] = { TCG_REG_EAX, TCG_REG_EDX }; static uint8_t *tb_ret_addr;