jit: add compile option

This commit is contained in:
RSDuck
2019-07-14 19:24:00 +02:00
parent 360317be8c
commit 411fb57c07
13 changed files with 149 additions and 53 deletions

View File

@ -80,15 +80,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;
@ -548,6 +541,7 @@ void ARMv5::Execute()
Halted = 0;
}
#ifdef JIT_ENABLED
void ARMv5::ExecuteJIT()
{
if (Halted)
@ -599,6 +593,7 @@ void ARMv5::ExecuteJIT()
if (Halted == 2)
Halted = 0;
}
#endif
void ARMv4::Execute()
{
@ -677,6 +672,7 @@ void ARMv4::Execute()
Halted = 0;
}
#ifdef JIT_ENABLED
void ARMv4::ExecuteJIT()
{
if (Halted)
@ -728,4 +724,5 @@ void ARMv4::ExecuteJIT()
if (Halted == 2)
Halted = 0;
}
}
#endif