On 16/11/2016 07:29, P J P wrote:
> +-- On Wed, 16 Nov 2016, Hervé Poussineau wrote --+
> | I don't have any datasheet for this device either, so I tested with real
> | programs. Those initialize itr field to either 0 or to 9, so your mask
> | doesn't change anything.
> |
> | Tested-by: Hervé Poussineau <[email protected]>
>
> Thank you so much. To confirm, do we need to update the mask to maybe
> 0x000F?
It's not needed if you change it as suggested elsewhere in the thread.
timer_mod(s->periodic_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) +
NANOSECONDS_PER_SECOND / 1000 * (s->itr + 1));
Thanks,
Paolo
> | > > > case 0x0228:
> | > > > - s->itr = val;
> | > > > + s->itr = val & 0x01FF;
> | > > > qemu_irq_lower(s->timer_irq);