]> Git Repo - qemu.git/commit
qdev: Simplify the SysBusDeviceClass::init path
authorPhilippe Mathieu-Daudé <[email protected]>
Mon, 28 May 2018 14:45:08 +0000 (16:45 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 1 Jun 2018 13:14:31 +0000 (15:14 +0200)
commitdbfe00130e4b0cd34d06d693a060655b4f7e95b4
tree9fecdf4e5134662fecdb2e46bf124a550c41fa12
parentc8c9e1039434b907ee982f3be04f81576bd1f588
qdev: Simplify the SysBusDeviceClass::init path

Instead of using
  SysBusDeviceClass::realize
   -> DeviceClass::realize
       -> DeviceClass::init
           -> sysbus_device_init
              -> SysBusDeviceClass::init

Simplify the path by directly calling SysBusDeviceClass::init
in SysBusDeviceClass::realize:

  SysBusDeviceClass::realize
   -> SysBusDeviceClass::init

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <20180419212727[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
[Removal of DeviceClass::init() moved into next patch,
sysbus_realize() tweaked for clarity]
Signed-off-by: Markus Armbruster <[email protected]>
Message-Id: <20180528144509[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
hw/core/sysbus.c
This page took 0.025533 seconds and 4 git commands to generate.