[Qemu-devel] [RFC v2] target-arm: Add and use symbolic names for register banks

2015-10-29 Thread Soren Brinkmann
Add BANK_ #defines to index banked registers. Suggested-by: Peter Maydell Signed-off-by: Soren Brinkmann --- v2: - move #defines from cpu.h to internals.h - drop ARM_ prefix in #defines --- target-arm/helper.c| 37 ++--- target-arm/internals.h | 16

[Qemu-devel] [RFC] target-arm: Add and use symbolic names for register banks

2015-10-19 Thread Soren Brinkmann
Add ARM_BANK_ #defines to index banked registers. Suggested-by: Peter Maydell Signed-off-by: Soren Brinkmann --- This change was suggested by Peter in the submission of "target-arm: Add support for SPSR_(ABT|UND|IRQ|FIQ)", which this patch depends on. I applied this to the banked_(sp

[Qemu-devel] [PATCH QEMU] target-arm: Add support for SPSR_(ABT|UND|IRQ|FIQ)

2015-10-15 Thread Soren Brinkmann
Signed-off-by: Soren Brinkmann --- Hi, I recently came across some code that caused undefined instruction exceptions when executing instructions 'mrs x11, spsr_abt' and the like. I'm not sure I get the full picture, but it seems QEMU already keeps the state for those SPSR re

[Qemu-devel] [PATCH QEMU] vmstate: Remove redefinition of VMSTATE_UINT32_ARRAY

2015-08-13 Thread Soren Brinkmann
The macro is defined twice in identical ways. Signed-off-by: Soren Brinkmann --- I have the feeling I'm missing a tiny one-letter difference or some ifdef, but I believe the mentioned macro is defined twice. Sören --- include/migration/vmstate.h | 3 --- 1 file changed, 3 dele

[Qemu-devel] [PATCH QEMU] target-arm: A64: Print ELR when taking exceptions

2015-06-22 Thread Soren Brinkmann
When taking an exception print the content of the exception link register. This is useful especially for synchronous exceptions because in that case this registers holds the address of the instruction that generated the exception. Signed-off-by: Soren Brinkmann --- target-arm/helper-a64.c | 2

[Qemu-devel] [PATCH v3 1/2] hw/loader: Support ramdisk with u-boot header

2013-07-08 Thread Soren Brinkmann
Introduce 'load_ramdisk()' which can load "normal" ramdisks and ramdisks with a u-boot header. To enable this and leverage synergies 'load_uimage()' is refactored to accomodate this additional use case. Signed-off-by: Soren Brinkmann --- v3: - remove fallback code

[Qemu-devel] [PATCH v3 2/2] hw/arm: Use 'load_ramdisk()' for loading ramdisks w/ U-Boot header

2013-07-08 Thread Soren Brinkmann
The load_ramdisk function is used to load ramdisk featuring a U-Boot header. Signed-off-by: Soren Brinkmann --- v2: - try to load a u-boot ramdisk using the new load_ramdisk() function first. And then, in case of an error, fall back to the traditional way for loading a ramdisk. In order

[Qemu-devel] [PATCH v3 0/2] Support ramdisks with U-Boot header

2013-07-08 Thread Soren Brinkmann
Sorry, for the delay, but I finally found some time for a follow up. I assume the asymmety between loading kernels and loading the ramdisk is the blocker for this series and fixed it up. Detailed changelog in the following emails. Sören Soren Brinkmann (2): hw/loader: Support ramdisk

[Qemu-devel] [PATCH v2 1/2] hw/loader: Support ramdisk with u-boot header

2013-06-14 Thread Soren Brinkmann
Introduce 'load_ramdisk()' which can load "normal" ramdisks and ramdisks with a u-boot header. To enable this and leverage synergies 'load_uimage()' is refactored to accomodate this additional use case. Signed-off-by: Soren Brinkmann --- v2: - document the new 

[Qemu-devel] [PATCH v2 0/2] Support ramdisks with U-Boot header

2013-06-14 Thread Soren Brinkmann
Updated with Peter's comments. The detailed changelog can be found in the following emails with the patches. Sören Soren Brinkmann (2): hw/loader: Support ramdisk with u-boot header hw/arm: Use 'load_ramdisk()' for loading ramdisk hw/arm/boot.c | 8 ++--- h

[Qemu-devel] [PATCH v2 2/2] hw/arm: Use 'load_ramdisk()' for loading ramdisk

2013-06-14 Thread Soren Brinkmann
The load_ramdisk function takes over loading traditional ramdisks images and does also load ramdisks with u-boot header. Signed-off-by: Soren Brinkmann --- hw/arm/boot.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index f310f73

[Qemu-devel] [PATCH 1/2] hw/loader: Support ramdisk with u-boot header

2013-06-14 Thread Soren Brinkmann
Introduce 'load_ramdisk()' which can load "normal" ramdisks and ramdisks with a u-boot header. To enable this and leverage synergies 'load_uimage()' is refactored to accomodate this additional use case. Signed-off-by: Soren Brinkmann

[Qemu-devel] [PATCH 2/2] hw/arm: Use 'load_ramdisk()' for loading ramdisk

2013-06-14 Thread Soren Brinkmann
The load_ramdisk function takes over loading traditional ramdisks images and does also load ramdisks with u-boot header. Signed-off-by: Soren Brinkmann --- hw/arm/boot.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/arm/boot.c b/hw/arm/boot.c index f310f73

[Qemu-devel] [PATCH 0/2] Support ramdisks with U-Boot header

2013-06-14 Thread Soren Brinkmann
For loading Linux kernels, QEMU already is able to recognize and load them when they feature a U-Boot header. This patch series targets to extend this support to ramdisks. Furthermore the ARM support code is changed to use the new functionality. Regards, Sören Soren Brinkmann (2