Memory: move GetFCRAMOffset into MemorySystem

This commit is contained in:
Weiyi Wang 2018-11-20 22:52:44 -05:00
parent 8118be6615
commit b199b7ada9
3 changed files with 5 additions and 6 deletions

View file

@ -739,7 +739,7 @@ void WriteMMIO<u64>(MMIORegionPointer mmio_handler, VAddr addr, const u64 data)
mmio_handler->Write64(addr, data);
}
u32 GetFCRAMOffset(u8* pointer) {
u32 MemorySystem::GetFCRAMOffset(u8* pointer) {
ASSERT(pointer >= fcram.data() && pointer < fcram.data() + fcram.size());
return pointer - fcram.data();
}