On 7 September 2013 08:04, Antony Pavlov <antonynpav...@gmail.com> wrote:
> +static const TypeInfo digic_timer_info = {
> +    .name = TYPE_DIGIC_TIMER,
> +    .parent = TYPE_SYS_BUS_DEVICE,
> +    .instance_size = sizeof(DigicTimerState),
> +    .instance_init = digic_timer_init,
> +};

This needs a reset function (should reset the timer,
so we behave the same on reset as we do at startup).

It also needs a VMStateDescription, since the
ptimer is migratable state.

thanks
-- PMM

Reply via email to