hw/timer: QOM'ify m48txx_sysbus
authorxiaoqiang zhao <zxq_yx_007@163.com>
Thu, 25 May 2017 13:34:48 +0000 (21:34 +0800)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 2 Jun 2017 04:54:43 +0000 (05:54 +0100)
commitc04e34a9823f8d2ff19ed2b9b3128c8b3e498c01
treed06ba4e796c54558344b85fa54f9a45a43a7707f
parent46eedc0e69453c4aa7409d8fdd0e92f8c5dc64c3
hw/timer: QOM'ify m48txx_sysbus

* split the old SysBus init function into an instance_init
  and a Device realize function
* use DeviceClass::realize instead of SysBusDeviceClass::init
* assign DeviceClass::vmsd instead of using vmstate_register function

Signed-off-by: xiaoqiang zhao <zxq_yx_007@163.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/timer/m48t59.c