summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-04-05 16:17:58 +0100
committerPeter Maydell <peter.maydell@linaro.org>2013-04-05 16:17:58 +0100
commit28092a23e6e2cb8298c1381f4f046842ffd376eb (patch)
tree03a4ee25eff5b57df68314422df18abf32ac3e9c
parente8945b4f2a65fc2872cc31a5141e136fd27d0af8 (diff)
downloadhqemu-28092a23e6e2cb8298c1381f4f046842ffd376eb.zip
hqemu-28092a23e6e2cb8298c1381f4f046842ffd376eb.tar.gz
hw/arm_mptimer: Save the timer state
Add a missing VMSTATE_TIMER() entry to the arm_mptimer vmstate description; this omission meant that we would probably hang on reload when the timer failed to fire. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 1363967348-3044-1-git-send-email-peter.maydell@linaro.org
-rw-r--r--hw/arm_mptimer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/arm_mptimer.c b/hw/arm_mptimer.c
index f59a9f1..317f5e4 100644
--- a/hw/arm_mptimer.c
+++ b/hw/arm_mptimer.c
@@ -253,14 +253,15 @@ static int arm_mptimer_init(SysBusDevice *dev)
static const VMStateDescription vmstate_timerblock = {
.name = "arm_mptimer_timerblock",
- .version_id = 1,
- .minimum_version_id = 1,
+ .version_id = 2,
+ .minimum_version_id = 2,
.fields = (VMStateField[]) {
VMSTATE_UINT32(count, TimerBlock),
VMSTATE_UINT32(load, TimerBlock),
VMSTATE_UINT32(control, TimerBlock),
VMSTATE_UINT32(status, TimerBlock),
VMSTATE_INT64(tick, TimerBlock),
+ VMSTATE_TIMER(timer, TimerBlock),
VMSTATE_END_OF_LIST()
}
};
OpenPOWER on IntegriCloud