]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm/machine: Use VMSTATE_VARRAY_INT32_ALLOC for cpreg arrays
authorEric Auger <eric.auger@redhat.com>
Fri, 6 Mar 2026 09:01:12 +0000 (09:01 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Mar 2026 09:43:18 +0000 (09:43 +0000)
commitab2ddc7b662d34c242ddfcfbe35996417b047ce2
tree5821dd553552fb7eaa6d6db185af5b20df475104
parentf555338df754b37e042d5b88610c34b1d1845383
target/arm/machine: Use VMSTATE_VARRAY_INT32_ALLOC for cpreg arrays

This removes the need for explicitly allocating cpreg_vmstate arrays.
On post save we simply point to cpreg arrays and set the length
accordingly.

Remove VMSTATE_VARRAY_INT32 for cpreg_vmstate_array_len as now
the array is dynamically allocated.

Also add a trace point on post_load to trace potential mismatch
between the number of incoming cpregs versus current ones.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20260304101625.1962633-3-eric.auger@redhat.com
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/kvm.c
target/arm/machine.c
target/arm/trace-events
target/arm/whpx/whpx-all.c