Merge remote-tracking branch 'pmaydell/target-arm.for-upstream' into staging
* pmaydell/target-arm.for-upstream: target-arm/cpu.h: Make cpu_init("nonexistent cpu") return NULL target-arm: When setting FPSCR.QC, don't clear other FPSCR bits
This commit is contained in:
commit
2e1201d09b
@ -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
|
||||
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user