31 |
void cpu_unlock(void); |
void cpu_unlock(void); |
32 |
void cpu_loop_exit(void); |
void cpu_loop_exit(void); |
33 |
|
|
34 |
|
/* Implemented CPSR bits. */ |
35 |
|
#define CACHED_CPSR_BITS 0xf8000000 |
36 |
static inline int compute_cpsr(void) |
static inline int compute_cpsr(void) |
37 |
{ |
{ |
38 |
int ZF; |
int ZF; |
39 |
ZF = (env->NZF == 0); |
ZF = (env->NZF == 0); |
40 |
return env->cpsr | (env->NZF & 0x80000000) | (ZF << 30) | |
return env->cpsr | (env->NZF & 0x80000000) | (ZF << 30) | |
41 |
(env->CF << 29) | ((env->VF & 0x80000000) >> 3); |
(env->CF << 29) | ((env->VF & 0x80000000) >> 3) | (env->QF << 27); |
42 |
} |
} |
43 |
|
|
44 |
static inline void env_to_regs(void) |
static inline void env_to_regs(void) |