target-arm queue
Another pullreq for 1.1 -- this is an update of the previous one to add the patch fixing the "-cpu foo" segfault. Please pull in time for 1.1-rc2 :-)
thanks
-- PMM
The following changes since commit 9f34841a812dc622f8de98bc6141925c22f0ee93:
Update version for 1.1.0-rc0 release (2012-05-09 16:39:57 -0500)
are available in the git repository at:
git://git.linaro.org/people/pmaydell/qemu-arm.git target-arm.for-upstream
Matt Craighead (1):
target-arm: When setting FPSCR.QC, don't clear other FPSCR bits
Peter Maydell (1):
target-arm/cpu.h: Make cpu_init("nonexistent cpu") return NULL
target-arm/cpu.h | 10 +++++++++- target-arm/neon_helper.c | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-)
PATCH 1/2 target-arm: When setting FPSCR.QC, don't clear other FPSCR bits
From: Matt Craighead <[email protected]>
This patch fixes a bug affecting a variety of Neon instructions, such as VQADD.
--- target-arm/neon_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
target-arm/neon_helper.c +1 -1
@@ -16,7 +16,7 @@#define SIGNBIT (uint32_t)0x80000000#define SIGNBIT64 ((uint64_t)1 << 63) -#define SET_QC () env->vfp.xregs[ARM_VFP_FPSCR] = CPSR_Q +#define SET_QC () env->vfp.xregs[ARM_VFP_FPSCR] |= CPSR_Q#define NEON_TYPE1 (name, type) \ typedef struct \
Signature · 1 line
1.7.1
PATCH 2/2 target-arm/cpu.h: Make cpu_init("nonexistent cpu") return NULL
In reply to Peter MaydellThe macro definition of cpu_init meant that if cpu_arm_init() returned NULL this wouldn't result in cpu_init() itself returning NULL. This had the effect that "-cpu foo" for some unknown CPU name 'foo' would cause ARM targets to segfault rather than generating a useful error message. Fix this by making cpu_init a simple inline function.
--- target-arm/cpu.h | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
target-arm/cpu.h +9 -1
@@ -458,7 +458,15 @@ void cpu_arm_set_cp_io(CPUARMState *env, int cpnum,#define TARGET_PHYS_ADDR_SPACE_BITS 32#define TARGET_VIRT_ADDR_SPACE_BITS 32 -#define cpu_init (model) (&cpu_arm_init(model)->env) +static inline CPUARMState *cpu_init (const char *cpu_model) +{ +ARMCPU *cpu =cpu_arm_init (cpu_model); +if (cpu) { +return &cpu->env; + } +return NULL ; +} +#define cpu_exec cpu_arm_exec#define cpu_gen_code cpu_arm_gen_code#define cpu_signal_handler cpu_arm_signal_handler
Signature · 1 line
1.7.1
Quoted 3 lines · Peter Maydell
Another pullreq for 1.1 -- this is an update of the previous one to add the patch fixing the "-cpu foo" segfault. Please pull in time for 1.1-rc2 :-)
Thanks, pulled.
Quoted 20 lines
thanks
-- PMMThe following changes since commit
9f34841a812dc622f8de98bc6141925c22f0ee93:Update version for 1.1.0-rc0 release (2012-05-09 16:39:57 -0500)
are available in the git repository at:
git://git.linaro.org/people/pmaydell/qemu-arm.git target-arm.for-upstreamMatt Craighead (1):
target-arm: When setting FPSCR.QC, don't clear other FPSCR bitsPeter Maydell (1):
target-arm/cpu.h: Makecpu_init("nonexistent cpu")return NULLtarget-arm/cpu.h | 10 +++++++++-
target-arm/neon_helper.c | 2 +-2 files changed, 10 insertions(+), 2 deletions(-)