From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPCp-0003Lf-CJ for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYPCo-0008MP-12 for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:06:55 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:50187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPCn-0008MH-HG for qemu-devel@nongnu.org; Sun, 19 Jun 2011 17:06:53 -0400 Received: by qyk30 with SMTP id 30so1163880qyk.4 for ; Sun, 19 Jun 2011 14:06:53 -0700 (PDT) MIME-Version: 1.0 From: Blue Swirl Date: Mon, 20 Jun 2011 00:06:33 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH 16/18] TCG/s390: use TCG_REG_CALL_STACK instead of TCG_REG_R15 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Use TCG_REG_CALL_STACK instead of TCG_REG_R15 for consistency. Signed-off-by: Blue Swirl --- tcg/s390/tcg-target.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tcg/s390/tcg-target.c b/tcg/s390/tcg-target.c index 2fc5646..e112052 100644 --- a/tcg/s390/tcg-target.c +++ b/tcg/s390/tcg-target.c @@ -2298,10 +2298,11 @@ static void tcg_target_init(TCGContext *s) static void tcg_target_qemu_prologue(TCGContext *s) { /* stmg %r6,%r15,48(%r15) (save registers) */ - tcg_out_insn(s, RXY, STMG, TCG_REG_R6, TCG_REG_R15, TCG_REG_R15, 48); + tcg_out_insn(s, RXY, STMG, TCG_REG_R6, TCG_REG_CALL_STACK, + TCG_REG_CALL_STACK, 48); /* aghi %r15,-160 (stack frame) */ - tcg_out_insn(s, RI, AGHI, TCG_REG_R15, -160); + tcg_out_insn(s, RI, AGHI, TCG_REG_CALL_STACK, -160); if (GUEST_BASE >= 0x80000) { tcg_out_movi(s, TCG_TYPE_PTR, TCG_GUEST_BASE_REG, GUEST_BASE); @@ -2315,7 +2316,8 @@ static void tcg_target_qemu_prologue(TCGContext *s) tb_ret_addr = s->code_ptr; /* lmg %r6,%r15,208(%r15) (restore registers) */ - tcg_out_insn(s, RXY, LMG, TCG_REG_R6, TCG_REG_R15, TCG_REG_R15, 208); + tcg_out_insn(s, RXY, LMG, TCG_REG_R6, TCG_REG_CALL_STACK, + TCG_REG_CALL_STACK, 208); /* br %r14 (return) */ tcg_out_insn(s, RR, BCR, S390_CC_ALWAYS, TCG_REG_R14); -- 1.6.2.4