| 196 | } |
| 197 | |
| 198 | void 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 |
nothing calls this directly
no test coverage detected