Skip to contentSkip to conversation

Fix DEBUG_TCGV compile error.

PATCH Applied Nathan Froyd 3 participants 3 messages Dec 16, 2008 – Feb 9, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix DEBUG_TCGV compile error.

Don't call TCGV_LOW on arg2. This section of code falls under #if TCG_TARGET_REG_BITS == 32, so arg2 will always be a TCGv_i32.

---
 tcg/tcg-op.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tcg/tcg-op.h +1 -1
index 5432ac1..b52056c 100644
@@ -654,7 +654,7 @@ static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_ptr arg2,
 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_ptr arg2,
                                      tcg_target_long offset)
 {
-    tcg_gen_ld16u_i32(TCGV_LOW(ret), TCGV_LOW(arg2), offset);
+    tcg_gen_ld16u_i32(TCGV_LOW(ret), arg2, offset);
     tcg_gen_movi_i32(TCGV_HIGH(ret), 0);
 }
 
Signature · 1 line
1.6.0.5
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Nathan Froyd

Don't call TCGV_LOW on arg2. This section of code falls under #if TCG_TARGET_REG_BITS == 32, so arg2 will always be a TCGv_i32.

---
 tcg/tcg-op.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tcg/tcg-op.h +1 -2
index 5432ac1..b52056c 100644
@@ -654,7 +654,7 @@ static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_ptr arg2,
 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_ptr arg2,
                                     tcg_target_long offset)
 {
-    tcg_gen_ld16u_i32(TCGV_LOW(ret), TCGV_LOW(arg2), offset);
+    tcg_gen_ld16u_i32(TCGV_LOW(ret), arg2, offset);
    tcg_gen_movi_i32(TCGV_HIGH(ret), 0);
 }
 
--

1.6.0.5

#2 lore raw
In reply to Nathan Froyd
Quoted 7 lines · Nathan Froyd

Don't call TCGV_LOW on arg2. This section of code falls under #if TCG_TARGET_REG_BITS == 32, so arg2 will always be a TCGv_i32.

---
 tcg/tcg-op.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied.

Quoted 19 lines
tcg/tcg-op.h +1 -1
index 5432ac1..b52056c 100644
@@ -654,7 +654,7 @@ static inline void tcg_gen_ld8s_i64(TCGv_i64 ret, TCGv_ptr arg2,
 static inline void tcg_gen_ld16u_i64(TCGv_i64 ret, TCGv_ptr arg2,
                                      tcg_target_long offset)
 {
-    tcg_gen_ld16u_i32(TCGV_LOW(ret), TCGV_LOW(arg2), offset);
+    tcg_gen_ld16u_i32(TCGV_LOW(ret), arg2, offset);
     tcg_gen_movi_i32(TCGV_HIGH(ret), 0);
 }
 
Signature · 1 line
1.6.0.5
Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net