mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
JitArm64/Jit64: Load the memory register without jumps and only when necessary.
This commit is contained in:

committed by
Frajo Haider

parent
17fa9dfc4e
commit
8bfcd2deb7
@ -98,6 +98,25 @@ void JitInterface::SetProfilingState(ProfilingState state)
|
||||
m_jit->jo.profile_blocks = state == ProfilingState::Enabled;
|
||||
}
|
||||
|
||||
void JitInterface::UpdateMembase()
|
||||
{
|
||||
if (!m_jit)
|
||||
return;
|
||||
|
||||
auto& ppc_state = m_system.GetPPCState();
|
||||
auto& memory = m_system.GetMemory();
|
||||
if (ppc_state.msr.DR)
|
||||
{
|
||||
ppc_state.mem_ptr =
|
||||
m_jit->jo.fastmem_arena ? memory.GetLogicalBase() : memory.GetLogicalPageMappingsBase();
|
||||
}
|
||||
else
|
||||
{
|
||||
ppc_state.mem_ptr =
|
||||
m_jit->jo.fastmem_arena ? memory.GetPhysicalBase() : memory.GetPhysicalPageMappingsBase();
|
||||
}
|
||||
}
|
||||
|
||||
void JitInterface::WriteProfileResults(const std::string& filename) const
|
||||
{
|
||||
Profiler::ProfileStats prof_stats;
|
||||
|
Reference in New Issue
Block a user