target/loongarch: Replace VMSTATE_UINTTL() -> VMSTATE_UINT64()
PATCH 1/1 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
--- target/loongarch/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/loongarch/machine.c +2 -2
@@ -171,8 +171,8 @@ const VMStateDescription vmstate_loongarch_cpu = { .version_id = 3, .minimum_version_id = 3, .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),
Signature · 1 line
2.51.0
Quoted 6 lines · Philippe Mathieu-Daudé
All
LoongArchCPU::pcand LoongArchCPU::gpr[] fields are ofuint64_ttype. Use the appropriateVMSTATE_UINT64()macro.There is no functional change (the migration stream is not modified), because the LoongArch targets are only built as 64-bit:
Quoted 8 lines
$ 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=64Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/loongarch/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks.
Song Gao
Quoted 15 lines
target/loongarch/machine.c +2
-2@@ -171,8 +171,8 @@ const VMStateDescription vmstate_loongarch_cpu = { .version_id = 3, .minimum_version_id = 3, .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),
Quoted 6 lines · Philippe Mathieu-Daudé
All
LoongArchCPU::pcand LoongArchCPU::gpr[] fields are ofuint64_ttype. Use the appropriateVMSTATE_UINT64()macro.There is no functional change (the migration stream is not modified), because the LoongArch targets are only built as 64-bit:
Quoted 8 lines
$ 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=64Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- target/loongarch/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Patch queued, thanks.