hw/intc/arm_gicv3_common: Move gicd shift bug handling to gicv3_post_load
commit341823c172168a6d2765937aaea635f5136c5aa9
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 12:34:45 +0000 (6 13:34 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 6 Aug 2018 15:19:33 +0000 (6 16:19 +0100)
tree8dae6cc62e1542b5021446531a35be19f0c3c579
parent326049cc8e6079d1ea49dc4b415b8112f0c995bd
hw/intc/arm_gicv3_common: Move gicd shift bug handling to gicv3_post_load

The code currently in gicv3_gicd_no_migration_shift_bug_post_load()
that handles migration from older QEMU versions with a particular
bug is misplaced. We need to run this after migration in all cases,
not just the cases where the "arm_gicv3/gicd_no_migration_shift_bug"
subsection is present, so it must go in a post_load hook for the
top level VMSD, not for the subsection. Move it.

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