From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qauuk-0006gk-AS for qemu-devel@nongnu.org; Sun, 26 Jun 2011 15:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qauui-0001mW-Sv for qemu-devel@nongnu.org; Sun, 26 Jun 2011 15:22:38 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:45053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qauui-0001j2-Gn for qemu-devel@nongnu.org; Sun, 26 Jun 2011 15:22:36 -0400 Received: by mail-qy0-f173.google.com with SMTP id 10so1206111qyk.4 for ; Sun, 26 Jun 2011 12:22:36 -0700 (PDT) MIME-Version: 1.0 From: Blue Swirl Date: Sun, 26 Jun 2011 22:22:16 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 04/12] TCG/IA64: use TCG_REG_CALL_STACK instead of TCG_REG_R12 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Aurelien Jarno Use TCG_REG_CALL_STACK instead of TCG_REG_R12 for consistency. Signed-off-by: Blue Swirl --- tcg/ia64/tcg-target.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tcg/ia64/tcg-target.c b/tcg/ia64/tcg-target.c index 6386a5b..e22e9b6 100644 --- a/tcg/ia64/tcg-target.c +++ b/tcg/ia64/tcg-target.c @@ -2311,7 +2311,8 @@ static void tcg_target_qemu_prologue(TCGContext *s) tcg_opc_m48(TCG_REG_P0, OPC_MOV_I21, TCG_REG_AREG0, TCG_REG_R32, 0), tcg_opc_a4 (TCG_REG_P0, OPC_ADDS_A4, - TCG_REG_R12, -frame_size, TCG_REG_R12), + TCG_REG_CALL_STACK, -frame_size, + TCG_REG_CALL_STACK), tcg_opc_b4 (TCG_REG_P0, OPC_BR_SPTK_MANY_B4, TCG_REG_B6)); /* epilogue */ @@ -2321,7 +2322,8 @@ static void tcg_target_qemu_prologue(TCGContext *s) tcg_opc_i21(TCG_REG_P0, OPC_MOV_I21, TCG_REG_B0, TCG_REG_R32, 0), tcg_opc_a4 (TCG_REG_P0, OPC_ADDS_A4, - TCG_REG_R12, frame_size, TCG_REG_R12)); + TCG_REG_CALL_STACK, frame_size, + TCG_REG_CALL_STACK)); tcg_out_bundle(s, miB, tcg_opc_m48(TCG_REG_P0, OPC_NOP_M48, 0), tcg_opc_i26(TCG_REG_P0, OPC_MOV_I_I26, @@ -2374,7 +2376,8 @@ static void tcg_target_init(TCGContext *s) tcg_regset_set_reg(s->reserved_regs, TCG_REG_R1); /* global pointer */ tcg_regset_set_reg(s->reserved_regs, TCG_REG_R2); /* internal use */ tcg_regset_set_reg(s->reserved_regs, TCG_REG_R3); /* internal use */ - tcg_regset_set_reg(s->reserved_regs, TCG_REG_R12); /* stack pointer */ + /* stack pointer */ + tcg_regset_set_reg(s->reserved_regs, TCG_REG_CALL_STACK); tcg_regset_set_reg(s->reserved_regs, TCG_REG_R13); /* thread pointer */ tcg_regset_set_reg(s->reserved_regs, TCG_REG_R32); /* return address */ tcg_regset_set_reg(s->reserved_regs, TCG_REG_R33); /* PFS */ -- 1.6.2.4