mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
jit: add compile option
This commit is contained in:
13
src/ARM.cpp
13
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;
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user