Merge pull request #2808 from Sonicadvance1/aarch64_jitregister

[AArch64] Support JitRegister better.
This commit is contained in:
flacs 2015-08-07 09:05:08 +02:00
commit 1699c733b7
3 changed files with 11 additions and 14 deletions

View File

@ -264,6 +264,7 @@ void SConfig::SaveCoreSettings(IniFile& ini)
core->Set("GPUDeterminismMode", m_strGPUDeterminismMode);
core->Set("GameCubeAdapter", m_GameCubeAdapter);
core->Set("AdapterRumble", m_AdapterRumble);
core->Set("PerfMapDir", m_perfDir);
}
void SConfig::SaveMovieSettings(IniFile& ini)
@ -522,6 +523,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
core->Get("GPUDeterminismMode", &m_strGPUDeterminismMode, "auto");
core->Get("GameCubeAdapter", &m_GameCubeAdapter, true);
core->Get("AdapterRumble", &m_AdapterRumble, true);
core->Get("PerfMapDir", &m_perfDir, "");
}
void SConfig::LoadMovieSettings(IniFile& ini)

View File

@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include "Common/Arm64Emitter.h"
#include "Common/JitRegister.h"
#include "Core/PowerPC/PowerPC.h"
#include "Core/PowerPC/JitArm64/Jit.h"
@ -94,6 +95,8 @@ void JitArm64AsmRoutineManager::Generate()
ABI_PopRegisters(regs_to_save);
RET(X30);
JitRegister::Register(enterCode, GetCodePtr(), "JIT_Dispatcher");
GenerateCommon();
FlushIcache();
@ -112,6 +115,7 @@ void JitArm64AsmRoutineManager::GenerateCommon()
ARM64Reg scale_reg = X0;
ARM64FloatEmitter float_emit(this);
const u8* start = GetCodePtr();
const u8* loadPairedIllegal = GetCodePtr();
BRK(100);
const u8* loadPairedFloatTwo = GetCodePtr();
@ -242,6 +246,8 @@ void JitArm64AsmRoutineManager::GenerateCommon()
RET(X30);
}
JitRegister::Register(start, GetCodePtr(), "JIT_QuantizedLoad");
pairedLoadQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCode16()));
ReserveCodeSpace(16 * sizeof(u8*));
@ -264,6 +270,7 @@ void JitArm64AsmRoutineManager::GenerateCommon()
pairedLoadQuantized[15] = loadPairedS16One;
// Stores
start = GetCodePtr();
const u8* storePairedIllegal = GetCodePtr();
BRK(0x101);
const u8* storePairedFloat;
@ -519,6 +526,8 @@ void JitArm64AsmRoutineManager::GenerateCommon()
BR(X2);
}
JitRegister::Register(start, GetCodePtr(), "JIT_QuantizedStore");
pairedStoreQuantized = reinterpret_cast<const u8**>(const_cast<u8*>(AlignCode16()));
ReserveCodeSpace(32 * sizeof(u8*));

View File

@ -104,12 +104,10 @@ bool DolphinApp::OnInit()
bool UseLogger = false;
bool selectVideoBackend = false;
bool selectAudioEmulation = false;
bool selectPerfDir = false;
wxString videoBackendName;
wxString audioEmulationName;
wxString userPath;
wxString perfDir;
#if wxUSE_CMDLINE_PARSER // Parse command lines
wxCmdLineEntryDesc cmdLineDesc[] =
@ -159,11 +157,6 @@ bool DolphinApp::OnInit()
"User folder path",
wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
},
{
wxCMD_LINE_OPTION, "P", "perf_dir",
"Directory for Linux perf perf-$pid.map file",
wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL
},
{
wxCMD_LINE_NONE, nullptr, nullptr, nullptr, wxCMD_LINE_VAL_NONE, 0
}
@ -189,7 +182,6 @@ bool DolphinApp::OnInit()
BatchMode = parser.Found("batch");
selectVideoBackend = parser.Found("video_backend", &videoBackendName);
selectAudioEmulation = parser.Found("audio_emulation", &audioEmulationName);
selectPerfDir = parser.Found("perf_dir", &perfDir);
playMovie = parser.Found("movie", &movieFile);
parser.Found("user", &userPath);
#endif // wxUSE_CMDLINE_PARSER
@ -207,12 +199,6 @@ bool DolphinApp::OnInit()
InitLanguageSupport(); // The language setting is loaded from the user directory
UICommon::Init();
if (selectPerfDir)
{
SConfig::GetInstance().m_perfDir =
WxStrToStr(perfDir);
}
if (selectVideoBackend && videoBackendName != wxEmptyString)
SConfig::GetInstance().m_strVideoBackend =
WxStrToStr(videoBackendName);