Re: [Qemu-devel] [PATCH V2 2/4] imx.31 and KZM board support: Timer support

2011-11-24 Thread Peter Maydell
On 22 November 2011 04:33, Peter Chubb wrote: > Implement the timers on the FreeScale i.MX31 SoC. > This is not a complete implementation, but gives enough for > Linux to boot and run. > > > Signed-off-by: Hans Jang > Signed-off-by: Adam Clench > Signed-off-by: Peter Chubb > --- >  hw/imx_timer

Re: [Qemu-devel] [PATCH V2 2/4] imx.31 and KZM board support: Timer support

2011-11-24 Thread Peter Maydell
On 22 November 2011 04:33, Peter Chubb wrote: > +/* > + * Print a message at most ten times. > + */ > +#define scream(fmt, args...) \ > +    do { \ > +        static int printable = 10;\ > +        if (printable--) { \ > +            fprintf(stderr, fmt, ##args);\ > +        } \ > +    } while (0)

Re: [Qemu-devel] [PATCH V2 2/4] imx.31 and KZM board support: Timer support

2011-11-21 Thread Peter Chubb
Implement the timers on the FreeScale i.MX31 SoC. This is not a complete implementation, but gives enough for Linux to boot and run. Signed-off-by: Hans Jang Signed-off-by: Adam Clench Signed-off-by: Peter Chubb --- hw/imx_timer.c | 441 ++