Use the DeviceState vmsd pointer rather than calling vmstate_register()
directly.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id:
20180820141116.9118-18-peter.maydell@linaro.org
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
sysbus_init_mmio(sbd, &s->iomem);
sysbus_init_irq(sbd, &s->irq);
s->ssi = ssi_create_bus(dev, "ssi");
- vmstate_register(dev, -1, &vmstate_pl022, s);
return 0;
}
sdc->init = pl022_init;
dc->reset = pl022_reset;
+ dc->vmsd = &vmstate_pl022;
}
static const TypeInfo pl022_info = {