mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-24 12:30:05 +00:00
ppcmmu: fix bug in mmu_change_mode().
This commit is contained in:
parent
094b3b5312
commit
9fcf5ba51a
@ -378,16 +378,16 @@ void mmu_change_mode()
|
||||
if (CurITLBMode != mmu_mode) {
|
||||
switch(mmu_mode) {
|
||||
case 0: // real address mode
|
||||
pCurITLB1 = &dtlb1_mode1[0];
|
||||
pCurITLB2 = &dtlb2_mode1[0];
|
||||
pCurITLB1 = &itlb1_mode1[0];
|
||||
pCurITLB2 = &itlb2_mode1[0];
|
||||
break;
|
||||
case 2: // supervisor mode with instruction translation enabled
|
||||
pCurITLB1 = &dtlb1_mode2[0];
|
||||
pCurITLB2 = &dtlb2_mode2[0];
|
||||
pCurITLB1 = &itlb1_mode2[0];
|
||||
pCurITLB2 = &itlb2_mode2[0];
|
||||
break;
|
||||
case 3: // user mode with instruction translation enabled
|
||||
pCurITLB1 = &dtlb1_mode3[0];
|
||||
pCurITLB2 = &dtlb2_mode3[0];
|
||||
pCurITLB1 = &itlb1_mode3[0];
|
||||
pCurITLB2 = &itlb2_mode3[0];
|
||||
break;
|
||||
}
|
||||
CurITLBMode = mmu_mode;
|
||||
|
Loading…
Reference in New Issue
Block a user