mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 01:59:02 +00:00
MemmapFunctions: various MMU optimizations
Small TLB lookup optimizations: this is the hot path for MMU code, so try to make it better. Template the TLB lookup functions based on the lookup type (opcode, data, no exception). Clean up the Read/Write functions and make them more consistent. Add an early-exit path for MMU accesses to ReadFromHardware/WriteToHardware.
This commit is contained in:
parent
ea23ce2726
commit
c2ed29fe0d
5 changed files with 155 additions and 177 deletions
|
@ -28,7 +28,7 @@ std::string PPCDebugInterface::Disassemble(unsigned int address)
|
|||
if (!Memory::IsRAMAddress(address, true, true))
|
||||
{
|
||||
if (!SConfig::GetInstance().m_LocalCoreStartupParameter.bMMU || !((address & JIT_ICACHE_VMEM_BIT) &&
|
||||
Memory::TranslateAddress(address, Memory::FLAG_NO_EXCEPTION)))
|
||||
Memory::TranslateAddress<Memory::FLAG_NO_EXCEPTION>(address)))
|
||||
{
|
||||
return "(No RAM here)";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue