aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-12-15 18:58:26 +0000
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-16 10:04:05 +0000
commitbfc213af97c5f7768ad7549bc95134cb4e218a76 (patch)
tree79a0d07920c2e6e01f09a8efcb145f2ef461c49c /hw
parent7fc3574d065d6744afbab73d8a701ffd94206138 (diff)
stellaris: Calculate system clock period on reset
Calculate the system clock period on reset; otherwise it remains set to the default value of zero and attempting to use it provokes a hang. This is one of the issues noted in LP:696094. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/stellaris.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/stellaris.c b/hw/stellaris.c
index ce62a98158..7a73074982 100644
--- a/hw/stellaris.c
+++ b/hw/stellaris.c
@@ -621,6 +621,7 @@ static void ssys_reset(void *opaque)
s->rcgc[0] = 1;
s->scgc[0] = 1;
s->dcgc[0] = 1;
+ ssys_calculate_system_clock(s);
}
static int stellaris_sys_post_load(void *opaque, int version_id)