OSDN Git Service

pl011: QOM'ify pl011 and pl011_luminary
authorAndreas Färber <afaerber@suse.de>
Wed, 24 Jul 2013 21:29:17 +0000 (23:29 +0200)
committerAndreas Färber <afaerber@suse.de>
Mon, 29 Jul 2013 19:06:28 +0000 (21:06 +0200)
commit71ffe1a01faa90fa08805e8030120b3be0efda25
tree5fec6b0f1b1d7eb8a74197e5dddc755002a45237
parentab640bfc2e0ae70ce7d11122ad30957ad53a1836
pl011: QOM'ify pl011 and pl011_luminary

Let the Luminary variant inherit from the ARM one, overwriting its ID on
instance_init. Introduce type constant and use QOM casts. Replace
triplicated SysBusDevice initfn with QOM realizefn and instance_init.

Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/char/pl011.c