]> git.proxmox.com Git - mirror_qemu.git/commitdiff
hw/intc/arm_gicv3_common: Combine duplicate .subsections in vmstate_gicv3_cpu
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 12:34:42 +0000 (13:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 15:19:33 +0000 (16:19 +0100)
Commit 6692aac411199064 accidentally introduced a second initialization
of the .subsections field of vmstate_gicv3_cpu, instead of adding
the new subsection to the existing list. The effect of this was
probably that migration of GICv3 with virtualization enabled was
broken (or alternatively that migration of ICC_SRE_EL1 was broken,
depending on which of the two initializers the compiler used).
Combine the two into a single list.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180806123445.1459-3-peter.maydell@linaro.org

hw/intc/arm_gicv3_common.c

index e58bc8b8105cea34091cfe328cc4e66238ef6a80..e1a8999cf5bc45a934c678b44da5e89c2fc8271f 100644 (file)
@@ -134,9 +134,6 @@ static const VMStateDescription vmstate_gicv3_cpu = {
     },
     .subsections = (const VMStateDescription * []) {
         &vmstate_gicv3_cpu_virt,
-        NULL
-    },
-    .subsections = (const VMStateDescription * []) {
         &vmstate_gicv3_cpu_sre_el1,
         NULL
     }