OSDN Git Service

arm_gic: Fix sizes of state fields in preparation for vmstate support
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Apr 2013 15:17:59 +0000 (16:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Apr 2013 15:17:59 +0000 (16:17 +0100)
commitc3037774be5329e584d4d709b9df7e1799bba215
treeeb32a3bd74289a7c892aec565b3b7ff3b3c43787
parentbd7f92e59e7f40ddaeda40e55f7818c8121ecf1a
arm_gic: Fix sizes of state fields in preparation for vmstate support

In preparation for switching to vmstate for migration support, fix
the sizes of various GIC state fields. In particular, we replace all
the bitfields (which VMState can't deal with) with straightforward
uint8_t values which we do bit operations on. (The bitfields made
more sense when NCPU was set differently in different situations,
but we now always model at the architectural limit of 8.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Message-id: 1363975375-3166-3-git-send-email-peter.maydell@linaro.org
hw/arm_gic_common.c
hw/arm_gic_internal.h
hw/armv7m_nvic.c