MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / L2GlobalInvalidate

Function L2GlobalInvalidate

src/dolphin/src/os/OSCache.c:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void L2GlobalInvalidate(void)
163{
164 L2Disable();
165 PPCMtl2cr(PPCMfl2cr() | 0x00200000);
166 while (PPCMfl2cr() & 0x00000001u)
167 ;
168 PPCMtl2cr(PPCMfl2cr() & ~0x00200000);
169 while (PPCMfl2cr() & 0x00000001u)
170 {
171 DBPrintf(">>> L2 INVALIDATE : SHOULD NEVER HAPPEN\n");
172 }
173}
174
175inline void L2Init(void)
176{

Callers 1

L2InitFunction · 0.85

Calls 3

PPCMtl2crFunction · 0.85
PPCMfl2crFunction · 0.85
DBPrintfFunction · 0.85

Tested by

no test coverage detected