]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/loongarch: Remove target_ulong use in gdb_write_register handler
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 8 Oct 2025 06:15:23 +0000 (08:15 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:27 +0000 (17:07 +0200)
commit7f306758fb83f1b64d02647171d5f65fc157ac25
treea0cfec2a08b858a846f16066529c0220550964dc
parent656940971f253412a565da9f21cf6f05a284c3d1
target/loongarch: Remove target_ulong use in gdb_write_register handler

ldq_le_p() returns a uint64_t type, big enough to also hold
ldl_le_p() return value. If we were building for a 32-bit
LoongArch target, ldq_le_p() would not fit in target_ulong.
Better stick to plain uint64_t.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20251009201947.34643-4-philmd@linaro.org>
target/loongarch/gdbstub.c