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

Function gsWrite64_page_01

pcsx2/GS.cpp:198–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void gsWrite64_page_01( u32 mem, u64 value )
199{
200 GIF_LOG("GS Write64 at %8.8lx with data %8.8x_%8.8x", mem, (u32)(value >> 32), (u32)value);
201
202 switch( mem )
203 {
204 case GS_BUSDIR:
205
206 gifUnit.stat.DIR = static_cast<u32>(value) & 1;
207 if (gifUnit.stat.DIR) { // Assume will do local->host transfer
208 gifUnit.stat.OPH = true; // Should we set OPH here?
209 gifUnit.FlushToMTGS(); // Send any pending GS Primitives to the GS
210 GUNIT_LOG("Busdir - GS->EE Download");
211 }
212 else {
213 GUNIT_LOG("Busdir - EE->GS Upload");
214 }
215
216 gsWrite64_generic( mem, value );
217 return;
218
219 case GS_CSR:
220 gsCSRwrite(tGS_CSR(value));
221 return;
222
223 case GS_IMR:
224 IMRwrite(static_cast<u32>(value));
225 return;
226 }
227
228 gsWrite64_generic( mem, value );
229}
230
231//////////////////////////////////////////////////////////////////////////
232// GS Write 128 bit

Callers

nothing calls this directly

Calls 5

gsWrite64_genericFunction · 0.85
gsCSRwriteFunction · 0.85
tGS_CSRFunction · 0.85
IMRwriteFunction · 0.85
FlushToMTGSMethod · 0.80

Tested by

no test coverage detected