qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [PATCH V4] booke timers


From: Alexander Graf
Subject: Re: [Qemu-ppc] [PATCH V4] booke timers
Date: Thu, 15 Sep 2011 13:37:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8

On 09/13/2011 04:00 PM, Fabien Chouteau wrote:
While working on the emulation of the freescale p2010 (e500v2) I realized that
there's no implementation of booke's timers features. Currently mpc8544 uses
ppc_emb (ppc_emb_timers_init) which is close but not exactly like booke (for
example booke uses different SPR).

Signed-off-by: Fabien Chouteau<address@hidden>
---

V2:
   - Fix fixed timer, now trigger each time the selected
     bit switch from 0 to 1.
   - Fix e500 criterion.
   - Trigger an interrupt when user set DIE/FIE/WIE while
     DIS/FIS/WIS is already set.
   - Minor fixes (mask definition, variable name...).
   - Rename ppc_emb to ppc_40x

V3:

   - Fix bit selection for e500 fixed timers (fp == 000000 selects msb)
   - Improved formula to compute the next event of a fixed timer

v4:

   - Centralized interrupt handling
   - Timer flags (BOOKE, E500, DECR_UNDERFLOW_TRIGGERED, DECR_ZERO_TRIGGERED)

Very nice, thank you so much!

Applied to ppc-next.


Alex




reply via email to

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