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

Method writeBackIfNeeded

pcsx2/Cache.cpp:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void writeBackIfNeeded()
114 {
115 if (!tag.isDirtyAndValid())
116 return;
117
118 uptr target = addr();
119
120 CACHE_LOG("Write back at %zx", target);
121 if (tag.isValidPFN())
122 *reinterpret_cast<CacheData*>(target) = data;
123 tag.clearDirty();
124 }
125
126 void load(uptr ppf)
127 {

Callers 3

writebackCacheFunction · 0.80
getFreeCacheFunction · 0.80
CACHEFunction · 0.80

Calls 3

isDirtyAndValidMethod · 0.80
isValidPFNMethod · 0.80
clearDirtyMethod · 0.80

Tested by

no test coverage detected