CPU/Recompiler: Implement speculative constants

This commit is contained in:
Connor McLaughlin
2020-09-27 12:23:24 +10:00
parent 51eff82eb6
commit b704c37e91
7 changed files with 440 additions and 205 deletions

View File

@ -332,6 +332,12 @@ void UpdateFastmemViews(bool enabled, bool isolate_cache)
//MapRAM(0xA0600000);
}
bool CanUseFastmemForAddress(VirtualMemoryAddress address)
{
const PhysicalMemoryAddress paddr = address & CPU::PHYSICAL_MEMORY_ADDRESS_MASK;
return IsRAMAddress(paddr);
}
bool IsRAMCodePage(u32 index)
{
return m_ram_code_bits[index];