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

Method load

pcsx2/Cache.cpp:126–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 }
125
126 void load(uptr ppf)
127 {
128 pxAssertMsg(!tag.isDirtyAndValid(), "Loaded a value into cache without writing back the old one!");
129
130 tag.setAddr(ppf);
131 if (!tag.isValidPFN())
132 {
133 // Reading from invalid physical addresses seems to return 0 on hardware
134 std::memset(&data, 0, sizeof(data));
135 }
136 else
137 {
138 std::memcpy(&data, reinterpret_cast<void*>(ppf & ~0x3FULL), sizeof(data));
139 }
140
141 tag.setValid();
142 tag.clearDirty();
143 }
144
145 void clear()
146 {

Callers 15

Gif_HandlerAD_MTVUFunction · 0.45
getFreeCacheFunction · 0.45
getReadAmountMethod · 0.45
IsOpenMethod · 0.45
StartThreadMethod · 0.45
ThreadEntryPointMethod · 0.45
ResetGSMethod · 0.45
MainLoopMethod · 0.45
GenericStallMethod · 0.45
PrepDataPacketMethod · 0.45
_FinishSimplePacketMethod · 0.45

Calls 5

isDirtyAndValidMethod · 0.80
setAddrMethod · 0.80
isValidPFNMethod · 0.80
setValidMethod · 0.80
clearDirtyMethod · 0.80

Tested by

no test coverage detected