History | View | Annotate | Download (18.2 kB)
exec: Make stl_phys_notdirty input an AddressSpace
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
hw/arm/boot: Don't set up ATAGS for autogenerated dtb booting
The code which decides whether to set up the ATAGS data structure onreset was using the wrong conditional, which meant we were creatingan ATAGS structure when doing a device-tree boot if the dtb was...
device_tree: s/qemu_devtree/qemu_fdt globally
The qemu_devtree API is a wrapper around the fdt_ set of APIs.Rename accordingly.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>[agraf: also convert hw/arm/virt.c]Signed-off-by: Alexander Graf <agraf@suse.de>
hw/arm/boot: Allow easier swapping in of different loader code
For AArch64 we will obviously require a different set ofprimary and secondary boot loader code fragments. However currentlywe hardcode the offsets into the loader code where we must writethe entrypoint and other data into arm_load_kernel(). This makes it...
hw/arm/boot: Add boot support for AArch64 processor
This commit adds support for booting a single AArch64 CPU by settingappropriate registers. The bootloader includes placeholders for Board-IDthat are used to implement uniform indexing across different bootloaders....
hw/arm/boot: Allow boards to provide an fdt blob
If no fdt is provided on command line and the new fieldget_dtb in struct arm_boot_info is set then call it toget a device tree blob.
Signed-off-by: John Rigby <john.rigby@linaro.org>Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>...
hw/arm/boot: Make user not specifying a kernel not an error
Typically ARM boards will have some kind of flash which might containa boot ROM; it's therefore a valid use case to provide only animage for the boot ROM and not require QEMU's internal boot loader...
cpu: Use QTAILQ for CPU list
Introduce CPU_FOREACH(), CPU_FOREACH_SAFE() and CPU_NEXT() shorthandmacros.
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header
The load_ramdisk function is used to load ramdisk featuring a U-Bootheader.
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>Reviewed-by: Peter Maydell <peter.maydell@linaro.org>...
arm/boot: Allow boards to modify the FDT blob
Add a callback hook in arm_boot_info to allow board models tomodify the device tree blob if they need to. (The major expecteduse case is to add virtio-mmio nodes for virtio-mmio transportsthat exist in QEMU but not in the hardware.)...
arm/boot: Use qemu_devtree_setprop_sized_cells()
Replace the opencoded assembly of the reg property array for the/memory node with a call to qemu_devtree_setprop_sized_cells().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>...
Merge remote-tracking branch 'afaerber/tags/qom-cpu-for-anthony' into staging
QOM CPUState refactorings
cpu: Make first_cpu and next_cpu CPUState
Move next_cpu from CPU_COMMON to CPUState.Move first_cpu variable to qom/cpu.h.
gdbstub needs to use CPUState::env_ptr for now.cpu_copy() no longer needs to save and restore cpu_next.
Acked-by: Paolo Bonzini <pbonzini@redhat.com>...
Simplify -machine option queries with qemu_get_machine_opts()
The previous two commits fixed bugs in -machine option queries. Ican't find fault with the remaining queries, but let's useqemu_get_machine_opts() everywhere, for consistency, simplicity and...
ARM: Allow dumping of device tree
By calling qemu_devtree_dumpdtb near the end of load_dtb.
Signed-off-by: John Rigby <john.rigby@linaro.org>Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
arm/boot: Free dtb blob memory after use
The dtb blob returned by load_device_tree() is in memory allocatedwith g_malloc(). Free it accordingly once we have copied itscontents into the guest memory. To make this easy, we need also toclean up the error handling in load_dtb() so that we consistently...
arm: Remove CONFIG_FDT conditionals
Now that we know we're compiling with libfdt, we can remove theCONFIG_FDT conditionals.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>...
Remove unneeded type casts
cpu_physical_memory_read, cpu_physical_memory_write take any pointeras 2nd argument without needing a type cast.
Signed-off-by: Stefan Weil <sw@weilnetz.de>Reviewed-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
arm: fix location of some include files
The recent rearrangement of include files had some minor errors: devices.h is not ARM specific and should not be in arm/ arm.h should be in arm/
Move these two headers to correct this.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
hw: move headers to include/
Many of these should be cleaned up with proper qdev-/QOM-ification.Right now there are many catch-all headers in include/hw/ARCH dependingon cpu.h, and this makes it necessary to compile these files per-target.However, fixing this does not belong in these patches....
hw: move boards and other isolated files to hw/ARCH
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>