qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 02/12] target-s390x: Fix duplicate call of tcg_temp_


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 02/12] target-s390x: Fix duplicate call of tcg_temp_new_i64
Date: Wed, 25 May 2011 22:25:19 +0200

tmp2 = tcg_temp_new_i64() is already executed unconditionally,
so there is no need to call it a second time for 64 bit hosts.

Signed-off-by: Stefan Weil <address@hidden>
---
 target-s390x/translate.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 3614516..a240efa 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -2067,7 +2067,6 @@ do_mh:
                 tcg_gen_qemu_ld32u(tmp2, tmp, get_mem_index(s));
                 tcg_gen_trunc_i64_i32(TCGV_HIGH(regs[i]), tmp2);
 #else
-                tmp2 = tcg_temp_new_i64();
                 tcg_gen_qemu_ld32u(tmp2, tmp, get_mem_index(s));
                 tmp4 = tcg_const_i64(4);
                 tcg_gen_shl_i64(tmp2, tmp2, tmp4);
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]