mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-29 17:19:54 -06:00
jit: add compile option
This commit is contained in:
13
src/ARM.cpp
13
src/ARM.cpp
@ -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
|
Reference in New Issue
Block a user