mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Remove preprocessor hacks to choose JIT implementation.
Opens up for having multiple JIT implementations available at runtime, which could be use for experimenting with new JIT compiler types or for unit testing one JIT on another architecture. Very few of the newly virtual calls are on any sort of critical path so hopefully there will not be a performance loss.
This commit is contained in:
1 parent
106a7d6a3b
commit
a5be0976bd
26 files changed
+480
-376
No files matched your search
@@ -62,11 +62,13 @@ op_agent_t agent;
|
||||
#endif
|
||||
|
||||
#ifdef ARM
|
||||
#include "Core/MIPS/ARM/ArmRegCache.h"
|
||||
using namespace ArmGen;
|
||||
using namespace ArmJitConstants;
|
||||
#elif defined(_M_X64) || defined(_M_IX86)
|
||||
using namespace Gen;
|
||||
#elif defined(ARM64)
|
||||
#include "Core/MIPS/ARM64/Arm64RegCache.h"
|
||||
using namespace Arm64Gen;
|
||||
using namespace Arm64JitConstants;
|
||||
#endif
|
||||
@@ -595,7 +597,7 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
|
||||
ARMXEmitter emit((u8 *)b->checkedEntry);
|
||||
emit.MOVI2R(R0, b->originalAddress);
|
||||
emit.STR(R0, CTXREG, offsetof(MIPSState, pc));
|
||||
emit.B(MIPSComp::jit->dispatcher);
|
||||
emit.B(MIPSComp::jit->GetDispatcher());
|
||||
emit.FlushIcache();
|
||||
|
||||
#elif defined(_M_IX86) || defined(_M_X64)
|
||||
@@ -615,7 +617,7 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
|
||||
ARM64XEmitter emit((u8 *)b->checkedEntry);
|
||||
emit.MOVI2R(SCRATCH1, b->originalAddress);
|
||||
emit.STR(INDEX_UNSIGNED, SCRATCH1, CTXREG, offsetof(MIPSState, pc));
|
||||
emit.B(MIPSComp::jit->dispatcher);
|
||||
emit.B(MIPSComp::jit->GetDispatcher());
|
||||
emit.FlushIcache();
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user