diff options
author | WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> | 2020-08-05 15:06:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-05 15:06:15 +0100 |
commit | 6d71f9c83293006b02a96ce0f5a5f9f65a47cd18 (patch) | |
tree | 5558a3a2ae148e7e17fdd56ab0296b883da0aa09 /src/ARMJIT_RegisterCache.h | |
parent | 7e5eafe345017dc93a68572528e896f896a6e175 (diff) | |
parent | e4b1526b477bc66996bce8f0a2f81c2f1cffba63 (diff) |
Merge branch 'master' into feature/zip-support
Diffstat (limited to 'src/ARMJIT_RegisterCache.h')
-rw-r--r-- | src/ARMJIT_RegisterCache.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ARMJIT_RegisterCache.h b/src/ARMJIT_RegisterCache.h index 0547c84..feb2d35 100644 --- a/src/ARMJIT_RegisterCache.h +++ b/src/ARMJIT_RegisterCache.h @@ -18,8 +18,8 @@ public: RegisterCache() {} - RegisterCache(T* compiler, FetchedInstr instrs[], int instrsCount, bool pcAllocatableAsSrc = false) - : Compiler(compiler), Instrs(instrs), InstrsCount(instrsCount) + RegisterCache(T* compiler, FetchedInstr instrs[], int instrsCount, bool pcAllocatableAsSrc = false) + : Compiler(compiler), Instrs(instrs), InstrsCount(instrsCount) { for (int i = 0; i < 16; i++) Mapping[i] = (Reg)-1; @@ -95,7 +95,7 @@ public: LiteralsLoaded = 0; } - void Prepare(bool thumb, int i) + void Prepare(bool thumb, int i) { FetchedInstr instr = Instrs[i]; @@ -175,23 +175,23 @@ public: DirtyRegs |= (LoadedRegs & instr.Info.DstRegs) & ~(1 << 15); } - static const Reg NativeRegAllocOrder[]; - static const int NativeRegsAvailable; + static const Reg NativeRegAllocOrder[]; + static const int NativeRegsAvailable; - Reg Mapping[16]; + Reg Mapping[16]; u32 LiteralValues[16]; u16 LiteralsLoaded = 0; - u32 NativeRegsUsed = 0; - u16 LoadedRegs = 0; - u16 DirtyRegs = 0; + u32 NativeRegsUsed = 0; + u16 LoadedRegs = 0; + u16 DirtyRegs = 0; u16 PCAllocatableAsSrc = 0; - T* Compiler; + T* Compiler; - FetchedInstr* Instrs; - int InstrsCount; + FetchedInstr* Instrs; + int InstrsCount; }; } |