From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVjEn-0007gI-CA for qemu-devel@nongnu.org; Mon, 26 Mar 2007 03:03:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVjEl-0007eH-LD for qemu-devel@nongnu.org; Mon, 26 Mar 2007 03:03:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVjEl-0007e6-Fx for qemu-devel@nongnu.org; Mon, 26 Mar 2007 02:03:27 -0500 Received: from bangui.magic.fr ([195.154.194.245]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVjCW-00055r-LG for qemu-devel@nongnu.org; Mon, 26 Mar 2007 03:01:09 -0400 Received: from [192.168.0.2] (ppp-36.net-723.magic.fr [80.118.184.36]) by bangui.magic.fr (8.13.1/8.13.1) with ESMTP id l2Q70QmE002484 for ; Mon, 26 Mar 2007 09:00:38 +0200 From: "J. Mayer" Content-Type: text/plain Date: Mon, 26 Mar 2007 09:00:10 +0200 Message-Id: <1174892411.6794.17.camel@rapid> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC] Handling more than one internal CPU timer. 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 Embedded PowerPC have the need of implementing 3 timers in the core area: - a fixed interval timer - a programable interval timer - a watchdog timer Those 3 timers are fully independant and can raise different exceptions (eventually at the same time). For this reason, they cannot be implemented properly using the existing CPU_INTERRUPT_TIMER. My proposal would be to add more definitions for another CPU_INTERRUPT_TIMER2 and CPU_INTERUUPT_WDT in cpu-all.h. As many embedded processors may have this need, it seems to be that this could be useful for other targets too.... Another solution would be to add another bitfield to the CPU definition structure, but then the CPU_INTERRUPT current definitions become less useful imho. Please comment. -- J. Mayer Never organized