From patchwork Wed Sep 28 00:06:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 675896 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3skJ451YKDz9s9Y for ; Wed, 28 Sep 2016 10:09:54 +1000 (AEST) Received: from localhost ([::1]:54914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp2RG-0005m2-5s for incoming@patchwork.ozlabs.org; Tue, 27 Sep 2016 20:09:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp2QW-0005TZ-7i for qemu-devel@nongnu.org; Tue, 27 Sep 2016 20:08:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bp2QR-0005xt-TA for qemu-devel@nongnu.org; Tue, 27 Sep 2016 20:08:43 -0400 Received: from icp-osb-irony-out3.external.iinet.net.au ([203.59.1.153]:10319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bp2QR-0005wm-HP for qemu-devel@nongnu.org; Tue, 27 Sep 2016 20:08:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2ACAgDPCOtX/1gQh5VdHAEBBAEBCgEBgz8BAQEBAR6BU40ylVQBAQEBAQEGlTmCBhSGCoFiOBQBAgEBAQEBAQFeJ4VhKCeBAohNwC6FbYkyfIIAC4MHBZl2j2yJe4VvkGgeNoJKAYJNLDSEaYIuAQEB X-IPAS-Result: A2ACAgDPCOtX/1gQh5VdHAEBBAEBCgEBgz8BAQEBAR6BU40ylVQBAQEBAQEGlTmCBhSGCoFiOBQBAgEBAQEBAQFeJ4VhKCeBAohNwC6FbYkyfIIAC4MHBZl2j2yJe4VvkGgeNoJKAYJNLDSEaYIuAQEB X-IronPort-AV: E=Sophos;i="5.30,407,1470672000"; d="scan'208";a="265750920" Received: from unknown (HELO goober.accelecon.com) ([149.135.16.88]) by icp-osb-irony-out3.iinet.net.au with ESMTP; 28 Sep 2016 08:08:35 +0800 From: Greg Ungerer To: qemu-devel@nongnu.org Date: Wed, 28 Sep 2016 10:06:39 +1000 Message-Id: <1475021199-28674-1-git-send-email-gerg@uclinux.org> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.59.1.153 Subject: [Qemu-devel] [PATCHv2] m68k: change default system clock for m5208evb X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Greg Ungerer Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The shipping default setting for the Freescale M5208EVB board is to run the CPU at 166.67MHz. The current qemu emulation code for this board is defaulting to 66MHz. This results in time appearing to run way to slowly. So a "sleep 5" in a standard ColdFire Linux build takes almost 15 seconds in real time to actually complete. Change the hard coded default to match the default hardware setting. Signed-off-by: Greg Ungerer Reviewed-by: Laurent Vivier Reviewed-by: Thomas Huth --- hw/m68k/mcf5208.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v2: more accurately set frequency (166666666 instead of 166000000) diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c index 9240ebf..3438314 100644 --- a/hw/m68k/mcf5208.c +++ b/hw/m68k/mcf5208.c @@ -21,7 +21,7 @@ #include "elf.h" #include "exec/address-spaces.h" -#define SYS_FREQ 66000000 +#define SYS_FREQ 166666666 #define PCSR_EN 0x0001 #define PCSR_RLD 0x0002