]> git.proxmox.com Git - mirror_qemu.git/commitdiff
stellaris: Calculate system clock period on reset
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Dec 2011 18:58:26 +0000 (18:58 +0000)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 16 Dec 2011 10:04:05 +0000 (10:04 +0000)
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>
hw/stellaris.c

index ce62a98158b35f25c23f70925e2832cc6924b7ca..7a7307498247fd5ca7e46e1a71d27ce0b2fdd769 100644 (file)
@@ -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)