From: Philippe Mathieu-Daudé Date: Thu, 25 Sep 2025 00:39:45 +0000 (+0200) Subject: target/loongarch: Replace VMSTATE_UINTTL() -> VMSTATE_UINT64() X-Git-Tag: v10.2.0-rc1~61^2~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=108773e700075a6dab8e4ae8d1330f6dfccba1d4;p=thirdparty%2Fqemu.git target/loongarch: Replace VMSTATE_UINTTL() -> VMSTATE_UINT64() All LoongArchCPU::pc and LoongArchCPU::gpr[] fields are of uint64_t type. Use the appropriate VMSTATE_UINT64() macro. There is no functional change (the migration stream is not modified), because the LoongArch targets are only built as 64-bit: $ git grep TARGET_LONG_BITS configs/targets/loongarch64* configs/targets/loongarch64-linux-user.mak:7:TARGET_LONG_BITS=64 configs/targets/loongarch64-softmmu.mak:7:TARGET_LONG_BITS=64 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Song Gao Message-Id: <20250925004327.58764-1-philmd@linaro.org> --- diff --git a/target/loongarch/machine.c b/target/loongarch/machine.c index 73190fb367..0366a50763 100644 --- a/target/loongarch/machine.c +++ b/target/loongarch/machine.c @@ -191,8 +191,8 @@ const VMStateDescription vmstate_loongarch_cpu = { .version_id = 4, .minimum_version_id = 4, .fields = (const VMStateField[]) { - VMSTATE_UINTTL_ARRAY(env.gpr, LoongArchCPU, 32), - VMSTATE_UINTTL(env.pc, LoongArchCPU), + VMSTATE_UINT64_ARRAY(env.gpr, LoongArchCPU, 32), + VMSTATE_UINT64(env.pc, LoongArchCPU), /* Remaining CSRs */ VMSTATE_UINT64(env.CSR_CRMD, LoongArchCPU),