qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC] Handling more than one internal CPU timer.


From: J. Mayer
Subject: [Qemu-devel] [RFC] Handling more than one internal CPU timer.
Date: Mon, 26 Mar 2007 09:00:10 +0200

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 <address@hidden>
Never organized





reply via email to

[Prev in Thread] Current Thread [Next in Thread]