Received: from eggs.gnu.org ([2001:4830:134:3::10]:54681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bosIb-0001Yi-FS for qemu-devel@nongnu.org; Tue, 27 Sep 2016 09:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bosIX-0005ml-5w for qemu-devel@nongnu.org; Tue, 27 Sep 2016 09:19:53 -0400 Received: from icp-osb-irony-out5.external.iinet.net.au ([203.59.1.221]:57497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bosIW-0005lo-QL for qemu-devel@nongnu.org; Tue, 27 Sep 2016 09:19:49 -0400 References: <1474939750-29846-1-git-send-email-gerg@uclinux.org> <16181557-1f01-893b-982b-8b35c7b2f4e4@tuxfamily.org> From: Greg Ungerer Message-ID: Date: Tue, 27 Sep 2016 23:19:41 +1000 MIME-Version: 1.0 In-Reply-To: <16181557-1f01-893b-982b-8b35c7b2f4e4@tuxfamily.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] m68k: change default system clock for m5208evb List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-devel@nongnu.org Hi Thomas, On 27/09/16 17:33, Thomas Huth wrote: > On 27.09.2016 03:29, Greg Ungerer wrote: >> The shipping default setting for the Freescale M5208EVB board is to run >> the CPU at 166MHz. 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 >> --- >> hw/m68k/mcf5208.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/hw/m68k/mcf5208.c b/hw/m68k/mcf5208.c >> index 9240ebf..2d0b464 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 166000000 > > Good catch. But actually, the M5208EVB User's Manual talks about 166.67 > MHz, so while you're at it, maybe you should change it to 166666666 instead? Yep, it sure does. I will make that change. Thanks Greg