summaryrefslogtreecommitdiffstats
path: root/hw/arm
Commit message (Collapse)AuthorAgeFilesLines
* integrator: fix Linux boot failure by emulating dbg regionAlex Bennée2013-10-311-0/+2
| | | | | | | | | | | | | | | | Commit 9b8c69243 (since reverted) broke the ability to boot the kernel as the value returned by unassigned_mem_read returned non-zero and left the kernel looping forever waiting for it to change (see integrator_led_set in the kernel code). Relying on a varying implementation detail is incorrect anyway so this introduces a basic stub of a memory region for the debug/LED section on the integrator board. Signed-off-by: Alex Bennée <alex@bennee.com> Message-id: 1382451366-9539-1-git-send-email-alex.bennee@linaro.org [PMM: removed three unused fields from struct IntegratorDebugState] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
* hw/arm: Tidy up conditional calls to arm_load_kernelPeter Maydell2013-10-313-19/+13
| | | | | | | | | Now that arm_load_kernel doesn't insist on a kernel filename being present, we can remove some unnecessary conditionals in board models. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1379980897-21277-3-git-send-email-peter.maydell@linaro.org
* hw/arm/boot: Make user not specifying a kernel not an errorPeter Maydell2013-10-311-2/+4
| | | | | | | | | | Typically ARM boards will have some kind of flash which might contain a boot ROM; it's therefore a valid use case to provide only an image for the boot ROM and not require QEMU's internal boot loader at all. Remove the fatal error if -kernel isn't specified. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1379980897-21277-2-git-send-email-peter.maydell@linaro.org
* Merge remote-tracking branch 'afaerber/tags/qom-cpu-for-anthony' into stagingAnthony Liguori2013-09-031-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QOM CPUState refactorings / X86CPU * Conversion of global CPU list to QTAILQ - preparing for CPU hot-unplug * Document X86CPU magic numbers for CPUID cache info # gpg: Signature made Tue 03 Sep 2013 10:59:22 AM CDT using RSA key ID 3E7E013F # gpg: Can't check signature: public key not found # By Andreas Färber (3) and Eduardo Habkost (1) # Via Andreas Färber * afaerber/tags/qom-cpu-for-anthony: target-i386: Use #defines instead of magic numbers for CPUID cache info cpu: Replace qemu_for_each_cpu() cpu: Use QTAILQ for CPU list a15mpcore: Use qemu_get_cpu() for generic timers
| * cpu: Use QTAILQ for CPU listAndreas Färber2013-09-031-1/+1
| | | | | | | | | | | | | | Introduce CPU_FOREACH(), CPU_FOREACH_SAFE() and CPU_NEXT() shorthand macros. Signed-off-by: Andreas Färber <afaerber@suse.de>
* | Merge remote-tracking branch 'mst/tags/for_anthony' into stagingAnthony Liguori2013-09-0319-34/+3
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pc,pci,virtio fixes and cleanups This includes pc and pci cleanups and enhancements, and a virtio bugfix for level interrupts. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Sun 01 Sep 2013 03:15:36 AM CDT using RSA key ID D28D5469 # gpg: Can't check signature: public key not found # By Michael S. Tsirkin (3) and others # Via Michael S. Tsirkin * mst/tags/for_anthony: virtio_pci: fix level interrupts with irqfd pc: reduce duplication, fix PIIX descriptions hw: Clean up bogus default boot order pci: add config space access traces pc: fix regression for 64 bit PCI memory pci: Introduce helper to retrieve a PCI device's DMA address space Message-id: 1378023590-11109-1-git-send-email-mst@redhat.com Signed-off-by: Anthony Liguori <anthony@codemonkey.ws>
| * hw: Clean up bogus default boot orderMarkus Armbruster2013-08-2819-34/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | aio / timers: Switch entire codebase to the new timer APIAlex Bligh2013-08-225-57/+57
| | | | | | | | | | | | | | | | | | | | | | 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>
* | aio / timers: Convert rtc_clock to be a QEMUClockTypeAlex Bligh2013-08-223-23/+26
|/ | | | | | | | | 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>
* hw/arm/pic_cpu: Remove the now-unneeded arm_pic_init_cpu()Peter Maydell2013-08-202-26/+1
| | | | | | | | 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
* hw/arm/xilinx_zynq: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-5/+2
| | | | | | | | 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
* hw/arm/vexpress: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-6/+2
| | | | | | | | 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
* hw/arm/versatilepb: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-4/+3
| | | | | | | | 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
* hw/arm/strongarm: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-3/+3
| | | | | | | | 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
* hw/arm/realview: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-3/+1
| | | | | | | | 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
* hw/arm/omap*: Don't use arm_pic_init_cpu()Peter Maydell2013-08-202-8/+8
| | | | | | | | 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
* hw/arm/musicpal: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-3/+1
| | | | | | | | 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
* hw/arm/kzm: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-5/+3
| | | | | | | | 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
* hw/arm/integratorcp: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-4/+3
| | | | | | | | 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
* hw/arm/highbank: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-3/+1
| | | | | | | | 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
* hw/arm/exynos4210: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-13/+3
| | | | | | | | 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
* hw/arm/armv7m: Don't use arm_pic_init_cpu()Peter Maydell2013-08-201-3/+2
| | | | | | | | 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
* target-arm: Make IRQ and FIQ gpio lines on the CPU objectPeter Maydell2013-08-201-53/+10
| | | | | | | | | | | | | | 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
* pxa2xx: Avoid object_get_link_property() assertion for "parent_bus"Andreas Färber2013-08-051-1/+3
| | | | | | | | | | | | | | 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>
* versatilepb: QOM cast cleanup for vpb_sic_stateAndreas Färber2013-07-291-16/+21
| | | | | | | 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>
* strongarm: QOM cast cleanup for StrongARMSSPStateAndreas Färber2013-07-291-10/+18
| | | | | | | 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>
* strongarm: QOM cast cleanup for StrongARMUARTStateAndreas Färber2013-07-291-6/+11
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* strongarm: QOM cast cleanup for StrongARMPPCInfoAndreas Färber2013-07-291-10/+14
| | | | | | | 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>
* strongarm: QOM cast cleanup for StrongARMGPIOInfoAndreas Färber2013-07-291-11/+14
| | | | | | | 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>
* strongarm: QOM cast cleanup for StrongARMRTCStateAndreas Färber2013-07-291-5/+10
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* strongarm: QOM cast cleanup for StrongARMPICStateAndreas Färber2013-07-291-9/+16
| | | | | | | 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>
* stellaris: QOM cast cleanup for stellaris_adc_stateAndreas Färber2013-07-291-11/+16
| | | | | | | 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>
* stellaris: QOM cast cleanup for stellaris_i2c_stateAndreas Färber2013-07-291-9/+15
| | | | | | | 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>
* stellaris: QOM cast cleanup for gptm_stateAndreas Färber2013-07-291-9/+15
| | | | | | | 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>
* spitz: QOM cast cleanup for SpitzKeyboardStateAndreas Färber2013-07-291-10/+14
| | | | | | | 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>
* spitz: QOM cast cleanup for SLNANDStateAndreas Färber2013-07-291-7/+10
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* pxa2xx_pic: QOM cast cleanup for PXA2xxPICStateAndreas Färber2013-07-291-6/+12
| | | | | | | 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>
* pxa2xx_gpio: QOM cast cleanup for PXA2xxGPIOInfoAndreas Färber2013-07-291-14/+21
| | | | | | | 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>
* pxa2xx: QOM cast cleanup for PXA2xxI2CStateAndreas Färber2013-07-291-13/+21
| | | | | | | 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>
* pxa2xx: QOM cast cleanup for PXA2xxRTCStateAndreas Färber2013-07-291-5/+12
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* pxa2xx: QOM cast cleanup for PXA2xxSSPStateAndreas Färber2013-07-291-10/+18
| | | | | | | 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>
* musicpal: QOM cast cleanup for musicpal_key_stateAndreas Färber2013-07-291-7/+15
| | | | | | | 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>
* musicpal: QOM cast cleanup for musicpal_gpio_stateAndreas Färber2013-07-291-11/+19
| | | | | | | 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>
* musicpal: QOM cast cleanup for mv88w8618_flashcfgAndreas Färber2013-07-291-4/+11
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* musicpal: QOM cast cleanup for mv88w8618_pit_stateAndreas Färber2013-07-291-6/+12
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* musicpal: QOM cast cleanup mv88w8618_pic_stateAndreas Färber2013-07-291-9/+14
| | | | | | Introduce a type constant, use QOM casts and rename the parent field. Signed-off-by: Andreas Färber <afaerber@suse.de>
* musicpal: QOM cast cleanup for musicpal_lcd_stateAndreas Färber2013-07-291-8/+16
| | | | | | | 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>
* musicpal: QOM cast cleanup for mv88w8618_eth_stateAndreas Färber2013-07-291-8/+16
| | | | | | Introduce type constant and use QOM casts. Signed-off-by: Andreas Färber <afaerber@suse.de>
* musicpal: Fix typo in name of local functionStefan Weil2013-07-291-2/+2
| | | | | | | | 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>
* integratorcp: QOM cast cleanup for icp_pic_stateAndreas Färber2013-07-291-18/+25
| | | | | | | Introduce type constant and use QOM cast. Fix indentation. Signed-off-by: Andreas Färber <afaerber@suse.de>
OpenPOWER on IntegriCloud