OSDN Git Service

hw/armv7m: Fix broken VMStateDescription
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 15:16:09 +0000 (15:16 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Jan 2022 14:29:46 +0000 (14:29 +0000)
commit62a4d87d2e4af378875e0749571fe41cab8706de
tree47aee4aff60e4340effb94f8e70a7f9ce22cf800
parentfd50a00a57509623ac253614ab10c7ea0eeb8d51
hw/armv7m: Fix broken VMStateDescription

In commit d5093d961585f02 we added a VMStateDescription to
the TYPE_ARMV7M object, to handle migration of its Clocks.
However a cut-and-paste error meant we used the wrong struct
name in the VMSTATE_CLOCK() macro arguments. The result was
that attempting a 'savevm' might result in an assertion
failure.

Cc: qemu-stable@nongnu.org
Buglink: https://gitlab.com/qemu-project/qemu/-/issues/803
Fixes: d5093d961585f02
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20220120151609.433555-1-peter.maydell@linaro.org
hw/arm/armv7m.c