From 0f71f52216ea235636a2ae215c1d775d97386129 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 3 Mar 2021 20:46:31 -0500 Subject: [PATCH] tcg: Expand TCGTemp.val to 64-bits This will reduce the differences between 32-bit and 64-bit hosts, allowing full 64-bit constants to be created with the same interface. Backports bdb38b95f72ebbef2d24e057828dd18ba9c81f63 --- qemu/tcg/tcg.c | 2 +- qemu/tcg/tcg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/tcg/tcg.c b/qemu/tcg/tcg.c index 47af402d..a40f8c14 100644 --- a/qemu/tcg/tcg.c +++ b/qemu/tcg/tcg.c @@ -2527,7 +2527,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"); diff --git a/qemu/tcg/tcg.h b/qemu/tcg/tcg.h index ca9a8ce5..973a0dfc 100644 --- a/qemu/tcg/tcg.h +++ b/qemu/tcg/tcg.h @@ -513,7 +513,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;