Revision 6ebbf390 target-arm/cpu.h
b/target-arm/cpu.h | ||
---|---|---|
43 | 43 |
typedef uint32_t ARMReadCPFunc(void *opaque, int cp_info, |
44 | 44 |
int dstreg, int operand); |
45 | 45 |
|
46 |
#define NB_MMU_MODES 2 |
|
47 |
|
|
46 | 48 |
/* We currently assume float and double are IEEE single and double |
47 | 49 |
precision respectively. |
48 | 50 |
Doing runtime conversions is tricky because VFP registers may contain |
... | ... | |
301 | 303 |
#define cpu_signal_handler cpu_arm_signal_handler |
302 | 304 |
#define cpu_list arm_cpu_list |
303 | 305 |
|
306 |
/* MMU modes definitions */ |
|
307 |
#define MMU_MODE0_SUFFIX _kernel |
|
308 |
#define MMU_MODE1_SUFFIX _user |
|
309 |
#define MMU_USER_IDX 1 |
|
310 |
static inline int cpu_mmu_index (CPUState *env) |
|
311 |
{ |
|
312 |
return (env->uncached_cpsr & CPSR_M) == ARM_CPU_MODE_USR ? 1 : 0; |
|
313 |
} |
|
314 |
|
|
304 | 315 |
#include "cpu-all.h" |
305 | 316 |
|
306 | 317 |
#endif |
Also available in: Unified diff