Skip to contentSkip to conversation

stellaris: Calculate system clock period on reset

PATCH Applied Peter Maydell 2 participants 2 messages Dec 15, 2011 – Dec 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/stellaris.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/stellaris.c +1 -0
index ce62a98..7a73074 100644
@@ -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)
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 8 lines · Peter Maydell

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.

---
 hw/stellaris.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches

Stefan