diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2013-02-28 18:23:13 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2013-02-28 18:23:13 +0000 |
commit | 9595978292e9a5b5f0ec77a9f6a0e724c10bf3b4 (patch) | |
tree | da3ff3b985f0c93cf4d3d7f5df840b6dc354f46c /hw/a9mpcore.c | |
parent | cde4577f11cd557cfd48d752b7a0929d19eac9e9 (diff) | |
download | qemu-9595978292e9a5b5f0ec77a9f6a0e724c10bf3b4.tar.gz qemu-9595978292e9a5b5f0ec77a9f6a0e724c10bf3b4.tar.bz2 qemu-9595978292e9a5b5f0ec77a9f6a0e724c10bf3b4.zip |
arm: a9mpcore: remove old_timer_status field
This field was write only and thus unused. Removed.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/a9mpcore.c')
-rw-r--r-- | hw/a9mpcore.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/hw/a9mpcore.c b/hw/a9mpcore.c index 0032f53c04..23630af1fe 100644 --- a/hw/a9mpcore.c +++ b/hw/a9mpcore.c @@ -16,7 +16,6 @@ typedef struct A9MPPrivState { SysBusDevice busdev; uint32_t scu_control; uint32_t scu_status; - uint32_t old_timer_status[8]; uint32_t num_cpu; MemoryRegion scu_iomem; MemoryRegion container; @@ -114,11 +113,8 @@ static const MemoryRegionOps a9_scu_ops = { static void a9mp_priv_reset(DeviceState *dev) { A9MPPrivState *s = FROM_SYSBUS(A9MPPrivState, SYS_BUS_DEVICE(dev)); - int i; + s->scu_control = 0; - for (i = 0; i < ARRAY_SIZE(s->old_timer_status); i++) { - s->old_timer_status[i] = 0; - } } static void a9mp_priv_set_irq(void *opaque, int irq, int level) @@ -199,11 +195,10 @@ static int a9mp_priv_init(SysBusDevice *dev) static const VMStateDescription vmstate_a9mp_priv = { .name = "a9mpcore_priv", - .version_id = 2, - .minimum_version_id = 1, + .version_id = 3, + .minimum_version_id = 3, .fields = (VMStateField[]) { VMSTATE_UINT32(scu_control, A9MPPrivState), - VMSTATE_UINT32_ARRAY(old_timer_status, A9MPPrivState, 8), VMSTATE_UINT32_V(scu_status, A9MPPrivState, 2), VMSTATE_END_OF_LIST() } |