]> git.proxmox.com Git - mirror_qemu.git/commitdiff
armv7m_nvic: Fix m-security subsection name
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Jul 2018 11:38:53 +0000 (12:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Jul 2018 13:51:40 +0000 (14:51 +0100)
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

hw/intc/armv7m_nvic.c

index 6be7fc5266d891bfaca4673234c06060c7e1cc57..cd1e7f172998a3b0da2a3610462b7b0f9401104a 100644 (file)
@@ -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,