prep_pci: Create PCIBus and PCIDevice in-place
Prepares for QOM realizefn by removing object creation from qdev initfn.
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
prep_pci: Convert to QOM realizefn
SysBusDeviceClass' initfn merely calls SysBusDeviceClass::init, so wecan already hook up our own realizefn overwriting this behavior.
A symmetric unrealizefn is not necessary, knowing that the child'sunrealizefn is still no-op, too. Avoids ripping it out again when...
Merge branch 'ppc-for-upstream' of git://repo.or.cz/qemu/agraf
vmware_vga: fix out of bounds and invalid rects updating
This is a follow up for several attempts to fix this issue.
Previous incarnations:
1. http://thread.gmane.org/gmane.linux.ubuntu.bugs.general/3156089https://bugs.launchpad.net/bugs/918791"qemu-kvm dies when using vmvga driver and unity in the guest" bug....
hw/arm_boot: Align device tree to 4KB boundary, not page
Align the device tree blob to a 4KB boundary, not to QEMU'sidea of a page boundary -- the latter is the smallest possiblepage size for the architecture, which on ARM is 1KB.The documentation for Linux does not impose separation...
fw_cfg: Drop a few superfluous initializers
Signed-off-by: Markus Armbruster <armbru@redhat.com>Reviewed-by: Laszlo Ersek <lersek@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
fw_cfg: Splash image loader can overrun a stack variable, fix
read_splashfile() passes the address of an int variable as size_t *parameter to g_file_get_contents(), with a cast to gag the compiler.
No problem on machines where sizeof(size_t) == sizeof(int)....
hw/pflash_cfi02.c: Mark deliberate fallthrough
Mark the deliberate fallthrough where we treat the case ofan attempt to read flash when it is an unknown commandstate as if it were a normal read.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/smc91c111: Add explicit 'return' rather than relying on fallthrough
Add an explicit 'return' statement to a case in smc91c111_readbrather than relying on fallthrough to the following case'sreturn statement, for code clarity and to placate static analysers....
hw/pxa2xx_timer: Explicitly mark fallthroughs
Explicitly mark the fallthroughs as intentional in the codepattern where we gradually increment an index before fallinginto the code to read/write that array entry: case THINGY_3: idx++; case THINGY_2: idx++;...
View revisions
Also available in: Atom