Previous 15994 Revisions Next

r6397 Sunday 15th November, 2009 at 22:04:46 UTC by Harmony
[VR4300] Fixed TLB load/store vector and Context behavior in MIPS core [Harmony]
[src/emu/cpu/mips]mips3drc.c

src/emu/cpu/mips/mips3drc.c
r6396r6397
11571157
11581158   if (exception == EXCEPTION_TLBLOAD || exception == EXCEPTION_TLBSTORE)
11591159   {
1160      offset = 0x000;
11601161      /* set the upper bits of EntryHi and the lower bits of Context to the fault page */
11611162      UML_ROLINS(block, CPR032(COP0_EntryHi), IREG(0), IMM(0), IMM(0xffffe000));   // rolins  [EntryHi],i0,0,0xffffe000
1162      UML_ROLINS(block, CPR032(COP0_Context), IREG(0), IMM(32-9), IMM(0x7fffff));   // rolins  [Context],i0,32-9,0x7fffff
1163      UML_ROLINS(block, CPR032(COP0_Context), IREG(0), IMM(32-9), IMM(0x7ffff0));   // rolins  [Context],i0,32-9,0x7fffff
11631164   }
11641165
11651166   /* set the EPC and Cause registers */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team