From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAT-0000uC-7D for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcbAK-0002NL-8t for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:14:05 -0500 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:59875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcbAJ-0002My-Vl for qemu-devel@nongnu.org; Mon, 19 Dec 2011 06:13:56 -0500 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Dec 2011 11:13:55 -0000 Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBJBDqcN2642060 for ; Mon, 19 Dec 2011 11:13:52 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBJBDpus017327 for ; Mon, 19 Dec 2011 04:13:52 -0700 From: Stefan Hajnoczi Date: Mon, 19 Dec 2011 11:12:24 +0000 Message-Id: <1324293158-25433-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1324293158-25433-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 03/17] stellaris: Calculate system clock period on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori , Stefan Hajnoczi From: 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. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- hw/stellaris.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/stellaris.c b/hw/stellaris.c index ce62a98..7a73074 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) -- 1.7.7.3