From mboxrd@z Thu Jan 1 00:00:00 1970 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) Sender: Richard Henderson From: Richard Henderson Date: Mon, 5 Aug 2013 08:28:41 -1000 Message-Id: <1375727330-30515-7-git-send-email-rth@twiddle.net> In-Reply-To: <1375727330-30515-1-git-send-email-rth@twiddle.net> References: <1375727330-30515-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH for-next 06/15] tcg-ppc64: Move AREG0 to r31 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Vassili Karpov (malc)" , Richard Henderson 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 -- 1.8.3.1