Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtOUl-0007FX-QB for qemu-devel@nongnu.org; Tue, 06 May 2008 10:50:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtOUl-0007FE-0S for qemu-devel@nongnu.org; Tue, 06 May 2008 10:50:19 -0400 Received: from [199.232.76.173] (port=55700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtOUk-0007Ex-R0 for qemu-devel@nongnu.org; Tue, 06 May 2008 10:50:18 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JtOUk-00005K-9V for qemu-devel@nongnu.org; Tue, 06 May 2008 10:50:18 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JtOUj-0001Tz-0f for qemu-devel@nongnu.org; Tue, 06 May 2008 14:50:17 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JtOUi-0001Tg-DI for qemu-devel@nongnu.org; Tue, 06 May 2008 14:50:16 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Tue, 06 May 2008 14:50:16 +0000 Subject: [Qemu-devel] [4360] Fix OMAP1 MPU-timer rate on 32-bit hosts. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 4360 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4360 Author: balrog Date: 2008-05-06 14:50:15 +0000 (Tue, 06 May 2008) Log Message: ----------- Fix OMAP1 MPU-timer rate on 32-bit hosts. Modified Paths: -------------- trunk/hw/omap1.c Modified: trunk/hw/omap1.c =================================================================== --- trunk/hw/omap1.c 2008-05-06 14:47:19 UTC (rev 4359) +++ trunk/hw/omap1.c 2008-05-06 14:50:15 UTC (rev 4360) @@ -696,7 +696,7 @@ if (timer->enable && timer->st && timer->rate) { timer->val = timer->reset_val; /* Should skip this on clk enable */ - expires = muldiv64(timer->val << (timer->ptv + 1), + expires = muldiv64((uint64_t) timer->val << (timer->ptv + 1), ticks_per_sec, timer->rate); /* If timer expiry would be sooner than in about 1 ms and