MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / TLBWI

Function TLBWI

pcsx2/COP0.cpp:421–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419 }
420
421 void TLBWI()
422 {
423 const u8 j = cpuRegs.CP0.n.Index & 0x3f;
424
425 if (j > 47)
426 {
427 Console.Warning("TLBWI with index > 47! (%d)", j);
428 return;
429 }
430
431 COP0_LOG("COP0_TLBWI %d:%x,%x,%x,%x",
432 cpuRegs.CP0.n.Index, cpuRegs.CP0.n.PageMask, cpuRegs.CP0.n.EntryHi,
433 cpuRegs.CP0.n.EntryLo0, cpuRegs.CP0.n.EntryLo1);
434
435 UnmapTLB(tlb[j], j);
436 WriteTLB(j);
437 }
438
439 void TLBWR()
440 {

Callers

nothing calls this directly

Calls 3

UnmapTLBFunction · 0.85
WriteTLBFunction · 0.85
WarningMethod · 0.45

Tested by

no test coverage detected