Revision 6ebbf390 target-sh4/cpu.h

b/target-sh4/cpu.h
77 77
#define UTLB_SIZE 64
78 78
#define ITLB_SIZE 4
79 79

  
80
#define NB_MMU_MODES 2
81

  
80 82
typedef struct CPUSH4State {
81 83
    uint32_t flags;		/* general execution flags */
82 84
    uint32_t gregs[24];		/* general registers */
......
134 136
#define cpu_gen_code cpu_sh4_gen_code
135 137
#define cpu_signal_handler cpu_sh4_signal_handler
136 138

  
139
/* MMU modes definitions */
140
#define MMU_MODE0_SUFFIX _kernel
141
#define MMU_MODE1_SUFFIX _user
142
#define MMU_USER_IDX 1
143
static inline int cpu_mmu_index (CPUState *env)
144
{
145
    return (env->sr & SR_MD) == 0 ? 1 : 0;
146
}
147

  
137 148
#include "cpu-all.h"
138 149

  
139 150
/* Memory access type */

Also available in: Unified diff