diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-07-27 12:38:53 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-07-30 14:51:40 +0100 |
commit | 942566ffc189ad1ea09d350860d08d95597537ca (patch) | |
tree | a102f806a450507c906e3800388e05dac0e32c20 /hw | |
parent | d1fb710a9b88fa6e11476ba7536b1c5cc2a55b19 (diff) | |
download | qemu-942566ffc189ad1ea09d350860d08d95597537ca.zip qemu-942566ffc189ad1ea09d350860d08d95597537ca.tar.gz qemu-942566ffc189ad1ea09d350860d08d95597537ca.tar.bz2 |
armv7m_nvic: Fix m-security subsection name
The vmstate save/load code insists that subsections of a VMState must
have names which include their parent VMState's name as a leading
substring. Unfortunately it neither documents this nor checks it on
device init or state save, but instead fails state load with a
confusing error message ("Missing section footer for armv7m_nvic").
Fix the name of the m-security subsection of the NVIC, so that
state save/load works correctly for the security-enabled NVIC.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180727113854.20283-2-peter.maydell@linaro.org
Diffstat (limited to 'hw')
-rw-r--r-- | hw/intc/armv7m_nvic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/intc/armv7m_nvic.c b/hw/intc/armv7m_nvic.c index 6be7fc5..cd1e7f1 100644 --- a/hw/intc/armv7m_nvic.c +++ b/hw/intc/armv7m_nvic.c @@ -2064,7 +2064,7 @@ static int nvic_security_post_load(void *opaque, int version_id) } static const VMStateDescription vmstate_nvic_security = { - .name = "nvic/m-security", + .name = "armv7m_nvic/m-security", .version_id = 1, .minimum_version_id = 1, .needed = nvic_security_needed, |