diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c index 5bd2d752d6d88dcada47535e00aa5770d06aa8b2..f1ede5f53b8be4a66793506f101b3f0a81d18d13 100644 --- a/hw/timer/arm_timer.c +++ b/hw/timer/arm_timer.c @@ -296,7 +296,6 @@ static void sp804_realize(DeviceState *dev, Error **errp) s->timer[1] = arm_timer_init(s->freq1); s->timer[0]->irq = qemu_allocate_irq(sp804_set_irq, s, 0); s->timer[1]->irq = qemu_allocate_irq(sp804_set_irq, s, 1); - vmstate_register(dev, -1, &vmstate_sp804, s); } /* Integrator/CP timer module. */ @@ -390,6 +389,7 @@ static void sp804_class_init(ObjectClass *klass, void *data) k->realize = sp804_realize; k->props = sp804_properties; + k->vmsd = &vmstate_sp804; } static const TypeInfo sp804_info = {