]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Expand tcg_global_mem_new() -> tcg_global_mem_new_i64()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 5 Feb 2026 21:14:59 +0000 (22:14 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Feb 2026 19:51:52 +0000 (20:51 +0100)
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é <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20260206181953.18683-11-philmd@linaro.org>

target/s390x/tcg/translate.c

index 4dabd49840f923e335ea2572d74fc9bf58fb5104..203afe265bca686b007fa861eb7387dca084befc 100644 (file)
@@ -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]);
     }
 }