History | View | Annotate | Download (5.1 kB)
arm_gic: Fix sizes of state fields in preparation for vmstate support
In preparation for switching to vmstate for migration support, fixthe sizes of various GIC state fields. In particular, we replace allthe bitfields (which VMState can't deal with) with straightforward...
Merge remote-tracking branch 'bonzini/hw-dirs' into staging
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>...
hw: include hw header files with full paths
Done with this script:
cd hwfor i in `find . -name '*.h' | sed 's/^..//'`; do echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'done | sed -i -f - `find . -type f`
This is so that paths remain valid as files are moved....
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>