bdc44640cb
cpu: Use QTAILQ for CPU list
...
Introduce CPU_FOREACH(), CPU_FOREACH_SAFE() and CPU_NEXT() shorthand
macros.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-09-03 12:25:55 +02:00
c165473269
hw: Clean up bogus default boot order
...
We set default boot order "cad" in every single machine definition
except "pseries" and "moxiesim", even though very few boards actually
care for boot order, and "cad" makes sense for even fewer.
Machines that care:
* pc and its variants
Accept up to three letters 'a', 'b' (undocumented alias for 'a'),
'c', 'd' and 'n'. Reject all others (fatal with -boot).
* nseries (n800, n810)
Check whether order starts with 'n'. Silently ignored otherwise.
* prep, g3beige, mac99
Extract the first character the machine understands (subset of
'a'..'f'). Silently ignored otherwise.
* spapr
Accept an arbitrary string (vl.c restricts it to contain only
'a'..'p', no duplicates).
* sun4[mdc]
Use the first character. Silently ignored otherwise.
Strip characters these machines ignore from their default boot order.
For all other machines, remove the unused default boot order
alltogether.
Note that my rename of QEMUMachine member boot_order to
default_boot_order and QEMUMachineInitArgs member boot_device to
boot_order has a welcome side effect: it makes every use of boot
orders visible in this patch, for easy review.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2013-08-28 10:16:47 +03:00
bc72ad6754
aio / timers: Switch entire codebase to the new timer API
...
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may introduce some line length issues.
Signed-off-by: Alex Bligh <alex@alex.org.uk >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-08-22 19:14:24 +02:00
884f17c235
aio / timers: Convert rtc_clock to be a QEMUClockType
...
Convert rtc_clock to be a QEMUClockType
Move rtc_clock users to use the new API
Signed-off-by: Alex Bligh <alex@alex.org.uk >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-08-22 19:14:24 +02:00
b643e4b90b
hw/arm/pic_cpu: Remove the now-unneeded arm_pic_init_cpu()
...
Now all the boards have been converted arm_pic_init_cpu()
is unused and can just be deleted.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-15-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:31 +01:00
e4a6540ded
hw/arm/xilinx_zynq: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-14-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
fe9120a5d1
hw/arm/vexpress: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-13-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
bace999f8a
hw/arm/versatilepb: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-12-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
4f071cf9b5
hw/arm/strongarm: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-11-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
033ee5a5ac
hw/arm/realview: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-10-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:30 +01:00
437f0f10a4
hw/arm/omap*: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-9-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
fcef61ec6b
hw/arm/musicpal: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-8-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
2f69ba1736
hw/arm/kzm: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-7-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
99d228d6e9
hw/arm/integratorcp: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-6-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
9188dbf71a
hw/arm/highbank: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-5-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:29 +01:00
ad666d91f4
hw/arm/exynos4210: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-4-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
de3a658f5b
hw/arm/armv7m: Don't use arm_pic_init_cpu()
...
Drop the now-deprecated arm_pic_init_cpu() in favour of directly
getting the IRQ line from the ARMCPU object.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-3-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
7c1840b686
target-arm: Make IRQ and FIQ gpio lines on the CPU object
...
Now that ARMCPU is a subclass of DeviceState, we can make the
CPU's inbound IRQ and FIQ lines be simply gpio lines, which
means we can remove the odd arm_pic shim.
We retain the arm_pic_init_cpu() function as a backwards
compatibility shim layer so we can convert the board models
to get the IRQ and FIQ lines directly from the ARMCPU
object one at a time.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1375977856-25046-2-git-send-email-peter.maydell@linaro.org
2013-08-20 14:54:28 +01:00
be2f78b6b0
pxa2xx: Avoid object_get_link_property() assertion for "parent_bus"
...
pxa2xx_i2c_init() creates a pxa2xx-i2c-slave device on a second i2c-bus,
which has a NULL parent device. This causes an assertion in
object_get_canonical_path() when accessing pxa2xx-i2c-slave's
"parent_bus" link<bus> property in tosa and likely other PXA2xx machines.
Fix this by using the pxa2xx_i2c device, created just before, as parent.
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
Message-id: 1375621501-5564-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-08-05 11:46:58 -05:00
cfc6b24578
versatilepb: QOM cast cleanup for vpb_sic_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
0ca81872f7
strongarm: QOM cast cleanup for StrongARMSSPState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
fff3af97b9
strongarm: QOM cast cleanup for StrongARMUARTState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
c71e673291
strongarm: QOM cast cleanup for StrongARMPPCInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
f55beb8477
strongarm: QOM cast cleanup for StrongARMGPIOInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
4e00210522
strongarm: QOM cast cleanup for StrongARMRTCState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
74e075f6fb
strongarm: QOM cast cleanup for StrongARMPICState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
7df7f67ae1
stellaris: QOM cast cleanup for stellaris_adc_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
d94a40156b
stellaris: QOM cast cleanup for stellaris_i2c_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:27 +02:00
8ef1d3947e
stellaris: QOM cast cleanup for gptm_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
73e9d965dd
spitz: QOM cast cleanup for SpitzKeyboardState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
7eb8104a9c
spitz: QOM cast cleanup for SLNANDState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
6050ed5fb9
pxa2xx_pic: QOM cast cleanup for PXA2xxPICState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
922bb317e4
pxa2xx_gpio: QOM cast cleanup for PXA2xxGPIOInfo
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
5354c21ef9
pxa2xx: QOM cast cleanup for PXA2xxI2CState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
548c6f188e
pxa2xx: QOM cast cleanup for PXA2xxRTCState
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
12a828041c
pxa2xx: QOM cast cleanup for PXA2xxSSPState
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
3bdf5327c9
musicpal: QOM cast cleanup for musicpal_key_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
7012d4b46b
musicpal: QOM cast cleanup for musicpal_gpio_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
5952b01cf8
musicpal: QOM cast cleanup for mv88w8618_flashcfg
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
4adc8541d9
musicpal: QOM cast cleanup for mv88w8618_pit_state
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:26 +02:00
c7bd0fd945
musicpal: QOM cast cleanup mv88w8618_pic_state
...
Introduce a type constant, use QOM casts and rename the parent field.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:19 +02:00
2cca58fdc2
musicpal: QOM cast cleanup for musicpal_lcd_state
...
Introduce a type constant, use QOM casts, rename the parent field and
prepare for QOM realize.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
a77d90e68a
musicpal: QOM cast cleanup for mv88w8618_eth_state
...
Introduce type constant and use QOM casts.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
2c79fed33b
musicpal: Fix typo in name of local function
...
The misspelling was spotted by Andreas Färber.
Signed-off-by: Stefan Weil <sw@weilnetz.de >
Reviewed-by: Jan Kiszka <jan.kiszka@web.de >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
91b646264e
integratorcp: QOM cast cleanup for icp_pic_state
...
Introduce type constant and use QOM cast.
Fix indentation.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
257ec289b2
integratorcp: QOM cast cleanup for integratorcm_state
...
Rename to IntegratorCMState, introduce type constant and use QOM cast.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
426533faed
highbank: QOM cast cleanup for HighbankRegsState
...
Add type constant and use QOM casts.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:18 +02:00
936230a713
armv7m: QOM cast cleanup for BitBandState
...
Introduce TYPE_* constant and use QOM cast.
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-07-29 21:06:06 +02:00
fd76663e3f
hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header
...
The load_ramdisk function is used to load ramdisk featuring a U-Boot
header.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373323202-17083-3-git-send-email-soren.brinkmann@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2013-07-22 12:01:37 +01:00
c8a07b355d
vexpress: Add virtio-mmio transports
...
Add some virtio-mmio transports to the vexpress board model,
together with a modify_dtb hook which adds them to the device
tree so that the kernel will probe for them. We put them
in a reserved area of the address map.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1373977512-28932-9-git-send-email-peter.maydell@linaro.org
2013-07-19 12:58:47 +01:00