From e9c3aafb5fc483434c4428fdb727abc6f44b5016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Thu, 5 Feb 2026 22:14:59 +0100 Subject: [PATCH] target/s390x: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The s390x target is a 64-bit one, so tcg_global_mem_new() expands to tcg_global_mem_new_i64(). Use the latter which is more explicit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Message-Id: <20260206181953.18683-11-philmd@linaro.org> --- target/s390x/tcg/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 4dabd49840..203afe265b 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -217,9 +217,9 @@ void s390x_translate_init(void) for (i = 0; i < 16; i++) { snprintf(cpu_reg_names[i], sizeof(cpu_reg_names[0]), "r%d", i); - regs[i] = tcg_global_mem_new(tcg_env, - offsetof(CPUS390XState, regs[i]), - cpu_reg_names[i]); + regs[i] = tcg_global_mem_new_i64(tcg_env, + offsetof(CPUS390XState, regs[i]), + cpu_reg_names[i]); } }