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

Function vuMicroWrite64

pcsx2/Memory.cpp:853–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851 }
852}
853template<int vunum> static void vuMicroWrite64(u32 addr, mem64_t data) {
854 VURegs* vu = vunum ? &VU1 : &VU0;
855 addr &= vunum ? 0x3fff: 0xfff;
856
857 if (vunum && THREAD_VU1) {
858 vu1Thread.WriteMicroMem(addr, &data, sizeof(u64));
859 return;
860 }
861
862 if (*(u64*)&vu->Micro[addr]!=data) {
863 ClearVuFunc<vunum>(addr, 8);
864 *(u64*)&vu->Micro[addr] =data;
865 }
866}
867template<int vunum> static void TAKES_R128 vuMicroWrite128(u32 addr, r128 data) {
868 VURegs* vu = vunum ? &VU1 : &VU0;
869 addr &= vunum ? 0x3fff: 0xfff;

Callers

nothing calls this directly

Calls 1

WriteMicroMemMethod · 0.80

Tested by

no test coverage detected