Received: from eggs.gnu.org ([140.186.70.92]:38910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeA0H-0005GB-7n for qemu-devel@nongnu.org; Tue, 05 Jul 2011 14:05:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeA0B-0000VJ-1l for qemu-devel@nongnu.org; Tue, 05 Jul 2011 14:05:44 -0400 Received: from db3ehsobe003.messaging.microsoft.com ([213.199.154.141]:8490 helo=DB3EHSOBE003.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeA0A-0000V2-N9 for qemu-devel@nongnu.org; Tue, 05 Jul 2011 14:05:38 -0400 Date: Tue, 5 Jul 2011 13:05:32 -0500 From: Scott Wood Message-ID: <20110705130532.7a51b1ed@schlenkerla.am.freescale.net> In-Reply-To: <4E133EA9.4040305@adacore.com> References: <1309529621-27691-1-git-send-email-chouteau@adacore.com> <20110701152244.278e720b@schlenkerla.am.freescale.net> <4E11D70E.4070808@adacore.com> <20110705110222.1ef56c46@schlenkerla.am.freescale.net> <4E133EA9.4040305@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V2] [PowerPC][RFC] booke timers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabien Chouteau Cc: qemu-devel@nongnu.org On Tue, 5 Jul 2011 18:41:13 +0200 Fabien Chouteau wrote: > On 05/07/2011 18:02, Scott Wood wrote: > > On Mon, 4 Jul 2011 17:06:54 +0200 > > Fabien Chouteau wrote: > >> Do you mean "lapse = period - ((tb - (1 << target_bit)) & (period - 1));" ? > > > > Yes. > > > > Or more simply: > > > > lapse = period - ((tb - period) & (period - 1)); > > > > Are you sure? Note that period != (1 << target_bit). Ah, right -- misread that. -Scott