x86-64 support on Android

We can do this now that the x86-64 JIT supports PIE.

JITIL is deliberately excluded from the GUI because it
doesn't support PIE yet. (JITIL will be used if it's
set in the INI, though.)
This commit is contained in:
JosJuice
2017-04-15 16:23:48 +02:00
parent a389ae0711
commit 9cd9ae902a
10 changed files with 106 additions and 33 deletions

View File

@@ -5,6 +5,7 @@
#include "Core/PowerPC/PowerPC.h"
#include <cstring>
#include <vector>
#include "Common/Assert.h"
#include "Common/ChunkFile.h"
@@ -180,6 +181,31 @@ static void InitializeCPUCore(int cpu_core)
}
}
const std::vector<CPUCore>& AvailableCPUCores()
{
static const std::vector<CPUCore> cpu_cores = {
CORE_INTERPRETER, CORE_CACHEDINTERPRETER,
#ifdef _M_X86_64
CORE_JIT64, CORE_JITIL64,
#elif defined(_M_ARM_64)
CORE_JITARM64,
#endif
};
return cpu_cores;
}
CPUCore DefaultCPUCore()
{
#ifdef _M_X86_64
return CORE_JIT64;
#elif defined(_M_ARM_64)
return CORE_JITARM64;
#else
return CORE_CACHEDINTERPRETER;
#endif
}
void Init(int cpu_core)
{
// NOTE: This function runs on EmuThread, not the CPU Thread.