Revision 40ce0a9a target-sparc/op_helper.c

b/target-sparc/op_helper.c
337 337
            oldreg = env->mmuregs[reg];
338 338
            switch(reg) {
339 339
            case 0:
340
                env->mmuregs[reg] &= ~(MMU_E | MMU_NF);
341
                env->mmuregs[reg] |= T1 & (MMU_E | MMU_NF);
340
                env->mmuregs[reg] &= ~(MMU_E | MMU_NF | MMU_BM);
341
                env->mmuregs[reg] |= T1 & (MMU_E | MMU_NF | MMU_BM);
342 342
                // Mappings generated during no-fault mode or MMU
343 343
                // disabled mode are invalid in normal mode
344 344
                if (oldreg != env->mmuregs[reg])

Also available in: Unified diff