Revision 996ba2cc target-mips/helper.c

b/target-mips/helper.c
130 130

  
131 131
    if (address <= (int32_t)0x7FFFFFFFUL) {
132 132
        /* useg */
133
        if (!(env->CP0_Status & (1 << CP0St_ERL) && user_mode)) {
134
            ret = env->map_address(env, physical, prot, address, rw, access_type);
135
        } else {
133
        if (env->CP0_Status & (1 << CP0St_ERL)) {
136 134
            *physical = address & 0xFFFFFFFF;
137 135
            *prot = PAGE_READ | PAGE_WRITE;
136
        } else {
137
            ret = env->map_address(env, physical, prot, address, rw, access_type);
138 138
        }
139 139
#ifdef TARGET_MIPS64
140 140
/*

Also available in: Unified diff