aboutsummaryrefslogtreecommitdiff
path: root/src/ARMJIT_x64/ARMJIT_Compiler.h
diff options
context:
space:
mode:
authorRSDuck <rsduck@users.noreply.github.com>2019-07-12 03:43:45 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-04-26 13:02:59 +0200
commit2efab201e936ab0f60baf1de8e957080141d2d93 (patch)
tree1943d29467b261a4539e880477a1bd6ca774064d /src/ARMJIT_x64/ARMJIT_Compiler.h
parentc58fdbd66bab9f1b97e9522afa5436f212540b6d (diff)
jit: LDM/STM finally(!) working + MUL, MLA and CLZ
Diffstat (limited to 'src/ARMJIT_x64/ARMJIT_Compiler.h')
-rw-r--r--src/ARMJIT_x64/ARMJIT_Compiler.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ARMJIT_x64/ARMJIT_Compiler.h b/src/ARMJIT_x64/ARMJIT_Compiler.h
index 45b488a..89dfe28 100644
--- a/src/ARMJIT_x64/ARMJIT_Compiler.h
+++ b/src/ARMJIT_x64/ARMJIT_Compiler.h
@@ -40,6 +40,7 @@ private:
void Comp_AddCycles_C(bool forceNonConstant = false);
void Comp_AddCycles_CI(u32 i);
+ void Comp_AddCycles_CI(Gen::X64Reg i, int add);
enum
{
@@ -55,6 +56,10 @@ private:
void A_Comp_MovOp();
void A_Comp_CmpOp();
+ void A_Comp_MUL_MLA();
+
+ void A_Comp_CLZ();
+
void A_Comp_MemWB();
void A_Comp_MemHalf();
void A_Comp_LDM_STM();
@@ -62,11 +67,13 @@ private:
void A_Comp_BranchImm();
void A_Comp_BranchXchangeReg();
+
void T_Comp_ShiftImm();
void T_Comp_AddSub_();
void T_Comp_ALU_Imm8();
void T_Comp_ALU();
void T_Comp_ALU_HiReg();
+ void T_Comp_MUL();
void T_Comp_RelAddr();
void T_Comp_AddSP();
@@ -88,7 +95,7 @@ private:
void T_Comp_BL_Merged(FetchedInstr prefix);
void Comp_MemAccess(Gen::OpArg rd, bool signExtend, bool store, int size);
- s32 Comp_MemAccessBlock(Gen::OpArg rb, BitSet16 regs, bool store, bool preinc, bool decrement, bool usermode);
+ s32 Comp_MemAccessBlock(int rn, BitSet16 regs, bool store, bool preinc, bool decrement, bool usermode);
void Comp_ArithTriOp(void (Compiler::*op)(int, const Gen::OpArg&, const Gen::OpArg&),
Gen::OpArg rd, Gen::OpArg rn, Gen::OpArg op2, bool carryUsed, int opFlags);
@@ -96,6 +103,8 @@ private:
Gen::OpArg rd, Gen::OpArg rn, Gen::OpArg op2, bool carryUsed, int opFlags);
void Comp_CmpOp(int op, Gen::OpArg rn, Gen::OpArg op2, bool carryUsed);
+ void Comp_MulOp(bool S, bool add, Gen::OpArg rd, Gen::OpArg rm, Gen::OpArg rs, Gen::OpArg rn);
+
void Comp_RetriveFlags(bool sign, bool retriveCV, bool carryUsed);
void* Gen_MemoryRoutine9(bool store, int size);
@@ -133,6 +142,9 @@ private:
void* MemoryFuncsSeq9[2][2];
void* MemoryFuncsSeq7[2][2][2];
+ void* ReadBanked;
+ void* WriteBanked;
+
bool CPSRDirty = false;
FetchedInstr CurInstr;