History | View | Annotate | Download (5.1 kB)
hw/arm_gic: Convert ARM GIC classes to use init/realize
Convert the ARM GIC classes to use init/realize rather thanSysBusDevice::init. (We have to do them all in one patch toavoid unconverted subclasses calling a nonexistent SysBusDeviceinit function in the base class and crashing.)...
hw/arm_gic: Add presave/postload hooks
Add presave/postload hooks to the ARM GIC common base class.These will be used by the KVM in-kernel GIC subclass to syncstate between kernel and userspace when migrating.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
arm_gic: Rename gic_state to GICState
Rename the gic_state struct to match QEMU's coding style conventionsfor structure names, since the impending KVM-for-ARM patches willcreate another subclass of it. This patch was created using: sed -i 's/gic_state/GICState/g' hw/arm_gic.c hw/arm_gic_common.c \...
hw/armv7m_nvic: Make the NVIC a freestanding class
Rearrange the GIC and NVIC so both are straightforwardsubclasses of a common class, rather than having the NVICsource file textually include arm_gic.c.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>