提交 adc4fda6 编写于 作者: P Peter Maydell

hw/intc/arm_gicv3_common: Combine duplicate .subsections in vmstate_gicv3_cpu

Commit 6692aac4 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: NPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
Message-id: 20180806123445.1459-3-peter.maydell@linaro.org
上级 78e9ddd7
...@@ -134,9 +134,6 @@ static const VMStateDescription vmstate_gicv3_cpu = { ...@@ -134,9 +134,6 @@ static const VMStateDescription vmstate_gicv3_cpu = {
}, },
.subsections = (const VMStateDescription * []) { .subsections = (const VMStateDescription * []) {
&vmstate_gicv3_cpu_virt, &vmstate_gicv3_cpu_virt,
NULL
},
.subsections = (const VMStateDescription * []) {
&vmstate_gicv3_cpu_sre_el1, &vmstate_gicv3_cpu_sre_el1,
NULL NULL
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册