Revision 6ebbf390 target-mips/cpu.h

b/target-mips/cpu.h
107 107
#define FP_UNIMPLEMENTED  32
108 108
};
109 109

  
110
#define NB_MMU_MODES 2
111

  
110 112
typedef struct CPUMIPSMVPContext CPUMIPSMVPContext;
111 113
struct CPUMIPSMVPContext {
112 114
    int32_t CP0_MVPControl;
......
484 486
#define cpu_signal_handler cpu_mips_signal_handler
485 487
#define cpu_list mips_cpu_list
486 488

  
489
/* MMU modes definitions */
490
#define MMU_MODE0_SUFFIX _kernel
491
#define MMU_MODE1_SUFFIX _user
492
#define MMU_USER_IDX 1
493
static inline int cpu_mmu_index (CPUState *env)
494
{
495
    return (env->hflags & MIPS_HFLAG_MODE) == MIPS_HFLAG_UM ? 1 : 0;
496
}
497

  
487 498
#include "cpu-all.h"
488 499

  
489 500
/* Memory access type :

Also available in: Unified diff