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

Function findInCache

pcsx2/Cache.cpp:192–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static bool findInCache(const CacheSet& set, uptr ppf, int* way)
193{
194 auto check = [&](int checkWay) -> bool {
195 if (!set.tags[checkWay].matches(ppf))
196 return false;
197
198 *way = checkWay;
199 return true;
200 };
201
202 return check(0) || check(1);
203}
204
205static int getFreeCache(u32 mem, int* way, bool validPFN)
206{

Callers 2

getFreeCacheFunction · 0.85
doCacheHitOpFunction · 0.85

Calls 1

matchesMethod · 0.80

Tested by

no test coverage detected