diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-04-05 16:17:59 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-04-05 16:17:59 +0100 |
commit | c3037774be5329e584d4d709b9df7e1799bba215 (patch) | |
tree | eb32a3bd74289a7c892aec565b3b7ff3b3c43787 /hw/arm_gic_common.c | |
parent | bd7f92e59e7f40ddaeda40e55f7818c8121ecf1a (diff) |
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
Diffstat (limited to 'hw/arm_gic_common.c')
-rw-r--r-- | hw/arm_gic_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/arm_gic_common.c b/hw/arm_gic_common.c index f2dc8bf555..f95bec3650 100644 --- a/hw/arm_gic_common.c +++ b/hw/arm_gic_common.c @@ -149,7 +149,7 @@ static void arm_gic_common_reset(DeviceState *dev) s->current_pending[i] = 1023; s->running_irq[i] = 1023; s->running_priority[i] = 0x100; - s->cpu_enabled[i] = 0; + s->cpu_enabled[i] = false; } for (i = 0; i < 16; i++) { GIC_SET_ENABLED(i, ALL_CPU_MASK); @@ -161,7 +161,7 @@ static void arm_gic_common_reset(DeviceState *dev) s->irq_target[i] = 1; } } - s->enabled = 0; + s->enabled = false; } static Property arm_gic_common_properties[] = { |