jit: add compile option

This commit is contained in:
RSDuck
2019-07-14 19:24:00 +02:00
parent fc82ca1a97
commit 86f2be7260
11 changed files with 134 additions and 51 deletions

View File

@ -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;
}
}
#endif