diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2019-07-14 19:24:00 +0200 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-06-16 11:54:03 +0200 |
commit | 86f2be7260f9a9b51efd7c795c28cdcfda775742 (patch) | |
tree | cde6dd8df1bdadb43f09ea2e11c06624142dc8c6 /src/ARM.cpp | |
parent | fc82ca1a97ce8304bf563ca53187227e505eb54e (diff) |
jit: add compile option
Diffstat (limited to 'src/ARM.cpp')
-rw-r--r-- | src/ARM.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/ARM.cpp b/src/ARM.cpp index 1cd4bb2..bfe1890 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -81,15 +81,8 @@ ARMv4::ARMv4() : ARM(1) // } -namespace ARMJIT {extern int instructionPopularityARM[ARMInstrInfo::ak_Count];} - void ARM::Reset() { - FILE* blabla = fopen("fhhg", "w"); - for (int i = 0; i < ARMInstrInfo::ak_Count; i++) - fprintf(blabla, "%d -> %dx\n", i, ARMJIT::instructionPopularityARM[i]); - fclose(blabla); - Cycles = 0; Halted = 0; @@ -591,6 +584,7 @@ void ARMv5::Execute() Halted = 0; } +#ifdef JIT_ENABLED void ARMv5::ExecuteJIT() { if (Halted) @@ -642,6 +636,7 @@ void ARMv5::ExecuteJIT() if (Halted == 2) Halted = 0; } +#endif void ARMv4::Execute() { @@ -720,6 +715,7 @@ void ARMv4::Execute() Halted = 0; } +#ifdef JIT_ENABLED void ARMv4::ExecuteJIT() { if (Halted) @@ -771,4 +767,5 @@ void ARMv4::ExecuteJIT() if (Halted == 2) Halted = 0; -}
\ No newline at end of file +} +#endif
\ No newline at end of file |