]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/s390x: Replace target_ulong -> uint64_t in gdb_write_register()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 7 Jan 2026 13:07:52 +0000 (14:07 +0100)
committerThomas Huth <thuth@redhat.com>
Mon, 12 Jan 2026 12:56:28 +0000 (13:56 +0100)
On s390x target_ulong expands to uint64_t. Besides,
ldq_be_p() returns a uint64_t type. Use that instead.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20260107130807.69870-5-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/gdbstub.c

index d1f02ea5ce4007d6d4996b1dea212f36e6316387..9ae715add4d4f59ae4646b929fc7036408e69feb 100644 (file)
@@ -46,7 +46,7 @@ int s390_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
 int s390_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
 {
     CPUS390XState *env = cpu_env(cs);
-    target_ulong tmpl = ldq_be_p(mem_buf);
+    uint64_t tmpl = ldq_be_p(mem_buf);
 
     switch (n) {
     case S390_PSWM_REGNUM: