tcg: Expand TCGTemp.val to 64-bits
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 6 Sep 2020 18:31:44 +0000 (11:31 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 13 Jan 2021 18:39:08 +0000 (08:39 -1000)
This will reduce the differences between 32-bit and 64-bit hosts,
allowing full 64-bit constants to be created with the same interface.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/tcg/tcg.h
tcg/tcg.c

index 2bdaeaa69cf9a96d6461c34043b022b062b96498..e7adc7e2658b47a9e2cf1cf83076fd534e045763 100644 (file)
@@ -506,7 +506,7 @@ typedef struct TCGTemp {
     unsigned int mem_allocated:1;
     unsigned int temp_allocated:1;
 
-    tcg_target_long val;
+    int64_t val;
     struct TCGTemp *mem_base;
     intptr_t mem_offset;
     const char *name;
index e02bb7195333d6056ff63c581aa506801d33d685..545dd2b0b230234572cfbbd64ef6974e1f698929 100644 (file)
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -3176,7 +3176,7 @@ static void dump_regs(TCGContext *s)
                    tcg_target_reg_names[ts->mem_base->reg]);
             break;
         case TEMP_VAL_CONST:
-            printf("$0x%" TCG_PRIlx, ts->val);
+            printf("$0x%" PRIx64, ts->val);
             break;
         case TEMP_VAL_DEAD:
             printf("D");