mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-11 20:29:46 +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) {
|
if (CurITLBMode != mmu_mode) {
|
||||||
switch(mmu_mode) {
|
switch(mmu_mode) {
|
||||||
case 0: // real address mode
|
case 0: // real address mode
|
||||||
pCurITLB1 = &dtlb1_mode1[0];
|
pCurITLB1 = &itlb1_mode1[0];
|
||||||
pCurITLB2 = &dtlb2_mode1[0];
|
pCurITLB2 = &itlb2_mode1[0];
|
||||||
break;
|
break;
|
||||||
case 2: // supervisor mode with instruction translation enabled
|
case 2: // supervisor mode with instruction translation enabled
|
||||||
pCurITLB1 = &dtlb1_mode2[0];
|
pCurITLB1 = &itlb1_mode2[0];
|
||||||
pCurITLB2 = &dtlb2_mode2[0];
|
pCurITLB2 = &itlb2_mode2[0];
|
||||||
break;
|
break;
|
||||||
case 3: // user mode with instruction translation enabled
|
case 3: // user mode with instruction translation enabled
|
||||||
pCurITLB1 = &dtlb1_mode3[0];
|
pCurITLB1 = &itlb1_mode3[0];
|
||||||
pCurITLB2 = &dtlb2_mode3[0];
|
pCurITLB2 = &itlb2_mode3[0];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
CurITLBMode = mmu_mode;
|
CurITLBMode = mmu_mode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user