This patch adds support for the LatticeMico32 system timer.
Signed-off-by: Michael Walle
---
Makefile.target |1 +
hw/lm32_timer.c | 222 +++
trace-events|6 ++
3 files changed, 229 insertions(+), 0 deletions(-)
create mode 100644
On Sat, Feb 12, 2011 at 12:29 AM, Michael Walle wrote:
> Am Freitag 11 Februar 2011, 22:22:32 schrieb Blue Swirl:
>> > +static uint32_t timer_read(void *opaque, target_phys_addr_t addr)
>> > +{
>> > + LM32TimerState *s = opaque;
>> > + uint32_t r = 0;
>> > +
>> > + addr >>= 2;
>> > + s
Am Freitag 11 Februar 2011, 22:22:32 schrieb Blue Swirl:
> > +static uint32_t timer_read(void *opaque, target_phys_addr_t addr)
> > +{
> > +LM32TimerState *s = opaque;
> > +uint32_t r = 0;
> > +
> > +addr >>= 2;
> > +switch (addr) {
> > +case R_SR:
> > +case R_CR:
> > +c
On Fri, Feb 11, 2011 at 1:12 AM, Michael Walle wrote:
> This patch adds support for the LatticeMico32 system timer.
>
> Signed-off-by: Michael Walle
> ---
> Makefile.target | 1 +
> hw/lm32_timer.c | 227
> +++
> trace-events | 6 ++
This patch adds support for the LatticeMico32 system timer.
Signed-off-by: Michael Walle
---
Makefile.target |1 +
hw/lm32_timer.c | 227 +++
trace-events|6 ++
3 files changed, 234 insertions(+), 0 deletions(-)
create mode 100644
This patch adds support for the LatticeMico32 system timer.
Signed-off-by: Michael Walle
---
Makefile.target |1 +
hw/lm32_timer.c | 227 +++
trace-events|6 ++
3 files changed, 234 insertions(+), 0 deletions(-)
create mode 100644