MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / TAKES_R128 vuMicroWrite128

Function TAKES_R128 vuMicroWrite128

pcsx2/Memory.cpp:867–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
870
871 const u128 udata = r128_to_u128(data);
872
873 if (vunum && THREAD_VU1) {
874 vu1Thread.WriteMicroMem(addr, &udata, sizeof(u128));
875 return;
876 }
877 if ((u128&)vu->Micro[addr]!=udata) {
878 ClearVuFunc<vunum>(addr, 16);
879 r128_store_unaligned(&vu->Micro[addr],data);
880 }
881}
882
883// VU Data Memory Reads...
884template<int vunum> static mem8_t vuDataRead8(u32 addr) {

Callers

nothing calls this directly

Calls 3

r128_to_u128Function · 0.85
r128_store_unalignedFunction · 0.85
WriteMicroMemMethod · 0.80

Tested by

no test coverage detected