[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/12] TCG/s390: use TCG_REG_CALL_STACK instead of T
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [PATCH 10/12] TCG/s390: use TCG_REG_CALL_STACK instead of TCG_REG_R15 |
Date: |
Sun, 26 Jun 2011 22:24:38 +0300 |
Use TCG_REG_CALL_STACK instead of TCG_REG_R15 for consistency.
Signed-off-by: Blue Swirl <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH 10/12] TCG/s390: use TCG_REG_CALL_STACK instead of TCG_REG_R15,
Blue Swirl <=