void ClearCacheLine(const u32 address) { // FIXME: does this do the right thing if dcbz is run on hardware memory, e.g. // the FIFO? Do games even do that? Probably not, but we should try to be correct... for (u32 i = 0; i < 32; i += 8) Write_U64(0, address + i); }
void ClearCacheLine(const u32 _Address) { u8 *ptr = GetPointer(_Address); if (ptr != nullptr) { memset(ptr, 0, 32); } else { for (u32 i = 0; i < 32; i += 8) Write_U64(0, _Address + i); } }