Revert "CPU/Recompiler: Use fastmem for constant loads from RAM mirrors in LUT mode"

This reverts commit 67fe97a17c.

Misread the logic here - it's masked anyway, so it's fine.
This commit is contained in:
Connor McLaughlin 2021-02-19 02:25:27 +10:00
parent 24c2165bb3
commit 30bcf280d4
1 changed files with 1 additions and 2 deletions

View File

@ -41,8 +41,7 @@ Value CodeGenerator::EmitLoadGuestMemory(const CodeBlockInstruction& cbi, const
{
Value result = m_register_cache.AllocateScratch(size);
if (g_settings.cpu_fastmem_mode == CPUFastmemMode::MMap &&
Bus::IsRAMAddress(static_cast<u32>(address.constant_value)))
if (g_settings.IsUsingFastmem() && Bus::IsRAMAddress(static_cast<u32>(address.constant_value)))
{
// have to mask away the high bits for mirrors, since we don't map them in fastmem
EmitLoadGuestRAMFastmem(Value::FromConstantU32(static_cast<u32>(address.constant_value) & Bus::RAM_MASK), size,