Skip to content
Permalink
Browse files
Merge pull request #8151 from lioncash/jit_tables
Jit64/Jit64_Tables: Construct tables at compile-time
  • Loading branch information
leoetlino committed Apr 28, 2020
2 parents 82012c4 + ee200d0 commit 401b582
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 125 deletions.
@@ -330,7 +330,6 @@ bool Jit64::BackPatch(u32 emAddress, SContext* ctx)

void Jit64::Init()
{
InitializeInstructionTables();
EnableBlockLink();

jo.fastmem_arena = SConfig::GetInstance().bFastmem && Memory::InitFastmemArena();
@@ -131,11 +131,11 @@ class Jit64 : public JitBase, public QuantizedMemoryRoutines
void DoNothing(UGeckoInstruction _inst);
void HLEFunction(UGeckoInstruction _inst);

void DynaRunTable4(UGeckoInstruction _inst);
void DynaRunTable19(UGeckoInstruction _inst);
void DynaRunTable31(UGeckoInstruction _inst);
void DynaRunTable59(UGeckoInstruction _inst);
void DynaRunTable63(UGeckoInstruction _inst);
void DynaRunTable4(UGeckoInstruction inst);
void DynaRunTable19(UGeckoInstruction inst);
void DynaRunTable31(UGeckoInstruction inst);
void DynaRunTable59(UGeckoInstruction inst);
void DynaRunTable63(UGeckoInstruction inst);

void addx(UGeckoInstruction inst);
void arithcx(UGeckoInstruction inst);
@@ -236,7 +236,6 @@ class Jit64 : public JitBase, public QuantizedMemoryRoutines
void eieio(UGeckoInstruction inst);

private:
static void InitializeInstructionTables();
void CompileInstruction(PPCAnalyst::CodeOp& op);

bool HandleFunctionHooking(u32 address);

0 comments on commit 401b582

Please sign in to comment.