| 34 |
#include "cpu.h" |
#include "cpu.h" |
| 35 |
#include "exec-all.h" |
#include "exec-all.h" |
| 36 |
|
|
|
/* Implemented CPSR bits. */ |
|
|
#define CACHED_CPSR_BITS 0xf8000000 |
|
|
static inline int compute_cpsr(void) |
|
|
{ |
|
|
int ZF; |
|
|
ZF = (env->NZF == 0); |
|
|
return env->cpsr | (env->NZF & 0x80000000) | (ZF << 30) | |
|
|
(env->CF << 29) | ((env->VF & 0x80000000) >> 3) | (env->QF << 27); |
|
|
} |
|
|
|
|
| 37 |
static inline void env_to_regs(void) |
static inline void env_to_regs(void) |
| 38 |
{ |
{ |
| 39 |
} |
} |
| 45 |
int cpu_arm_handle_mmu_fault (CPUState *env, target_ulong address, int rw, |
int cpu_arm_handle_mmu_fault (CPUState *env, target_ulong address, int rw, |
| 46 |
int is_user, int is_softmmu); |
int is_user, int is_softmmu); |
| 47 |
|
|
| 48 |
|
#if !defined(CONFIG_USER_ONLY) |
| 49 |
|
#include "softmmu_exec.h" |
| 50 |
|
#endif |
| 51 |
|
|
| 52 |
/* In op_helper.c */ |
/* In op_helper.c */ |
| 53 |
|
|
| 54 |
void cpu_lock(void); |
void cpu_lock(void); |
| 55 |
void cpu_unlock(void); |
void cpu_unlock(void); |
| 56 |
|
void helper_set_cp15(CPUState *, uint32_t, uint32_t); |
| 57 |
|
uint32_t helper_get_cp15(CPUState *, uint32_t); |
| 58 |
|
|
| 59 |
void cpu_loop_exit(void); |
void cpu_loop_exit(void); |
| 60 |
|
|
| 61 |
void raise_exception(int); |
void raise_exception(int); |