From patchwork Mon Aug 5 18:28:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 264740 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 199112C0040 for ; Tue, 6 Aug 2013 04:30:41 +1000 (EST) Received: from localhost ([::1]:49102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6PYD-00041l-6H for incoming@patchwork.ozlabs.org; Mon, 05 Aug 2013 14:30:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6PXP-0003pd-9u for qemu-devel@nongnu.org; Mon, 05 Aug 2013 14:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6PXI-0001DJ-VN for qemu-devel@nongnu.org; Mon, 05 Aug 2013 14:29:47 -0400 Received: from mail-qa0-x230.google.com ([2607:f8b0:400d:c00::230]:33883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6PXI-0001DB-QX for qemu-devel@nongnu.org; Mon, 05 Aug 2013 14:29:40 -0400 Received: by mail-qa0-f48.google.com with SMTP id o19so1147484qap.7 for ; Mon, 05 Aug 2013 11:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=kkvUoPr3VZfTy4Etk3QE/Djk153OtT3/cH/icXrv/1c=; b=hGc4Q14/LE/YbfWGgNWTSMX7MS+6UbDtC7spYlsjmzuzOtqFwJ17+qIpFVHTQb+F2U Pu/5zX/dXlSw+gnVpjxUI17tDuVUNF2jD/uQLlreFrVhUljOxq/HZ7P5Wvzdm1X3bOoV LB1YnbwrWdjLsV4Gyqy+CvghiDgPtcSFVdBGyQDgGSnQD9WMWZcSUxTDozBPjd7f5Dmd dM4iz0O3uuLMkZj4q2K+V4RbT3/hRnfykvmLiYl8kKXGqDw5uxTuM3eLocNXDV9AaXCg K3pg/nsPBWy6Cg+la0WApmLK6GyiXFHDlUWcIObtGhqqvpyPkl7a0vJ5nus5WURY7Jb7 Xpng== X-Received: by 10.224.135.7 with SMTP id l7mr30504512qat.0.1375727380258; Mon, 05 Aug 2013 11:29:40 -0700 (PDT) Received: from pebble.com (cpe-66-91-180-52.hawaii.res.rr.com. [66.91.180.52]) by mx.google.com with ESMTPSA id n8sm574544qez.2.2013.08.05.11.29.38 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 05 Aug 2013 11:29:39 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 5 Aug 2013 08:28:41 -1000 Message-Id: <1375727330-30515-7-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1375727330-30515-1-git-send-email-rth@twiddle.net> References: <1375727330-30515-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::230 Cc: "Vassili Karpov \(malc\)" , Richard Henderson Subject: [Qemu-devel] [PATCH for-next 06/15] tcg-ppc64: Move AREG0 to r31 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Now that AREG0 doesn't need to be a global register, non-conflicting with the normal frame pointer, move it out of the middle of the set. Signed-off-by: Richard Henderson --- tcg/ppc64/tcg-target.c | 4 ++-- tcg/ppc64/tcg-target.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c index 2563253..2b3d1bb 100644 --- a/tcg/ppc64/tcg-target.c +++ b/tcg/ppc64/tcg-target.c @@ -166,11 +166,11 @@ static const int tcg_target_callee_save_regs[] = { TCG_REG_R24, TCG_REG_R25, TCG_REG_R26, - TCG_REG_R27, /* currently used for the global env */ + TCG_REG_R27, TCG_REG_R28, TCG_REG_R29, TCG_REG_R30, - TCG_REG_R31 + TCG_REG_R31, /* currently used for the global env */ }; static inline bool in_range_b(intptr_t disp) diff --git a/tcg/ppc64/tcg-target.h b/tcg/ppc64/tcg-target.h index 48fc6e2..66d0515 100644 --- a/tcg/ppc64/tcg-target.h +++ b/tcg/ppc64/tcg-target.h @@ -119,7 +119,7 @@ typedef enum { #define TCG_TARGET_HAS_mulu2_i64 1 #define TCG_TARGET_HAS_muls2_i64 1 -#define TCG_AREG0 TCG_REG_R27 +#define TCG_AREG0 TCG_REG_R31 #define TCG_TARGET_EXTEND_ARGS 1