[JIT]: Minor change

This commit is contained in:
SimoneN64
2025-01-23 23:39:24 +01:00
parent 7c502b3d6b
commit ee75eb10cf
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ int JIT::Step() {
} }
u32 upperIndex = paddr >> kUpperShift; u32 upperIndex = paddr >> kUpperShift;
u32 lowerIndex = paddr & 0xff; u32 lowerIndex = paddr & kLowerMask;
if (!blockCache[upperIndex].empty()) { if (!blockCache[upperIndex].empty()) {
if (blockCache[upperIndex][lowerIndex]) { if (blockCache[upperIndex][lowerIndex]) {

View File

@@ -44,9 +44,9 @@ private:
friend struct Cop1; friend struct Cop1;
friend struct Registers; friend struct Registers;
using BlockFn = int (*)(); using BlockFn = int (*)();
std::vector<std::vector<BlockFn>> blockCache;
Xbyak::Label branch_likely_not_taken; Xbyak::Label branch_likely_not_taken;
std::vector<std::vector<BlockFn>> blockCache;
template <typename T> template <typename T>
Xbyak::Address GPR(const size_t index) const { Xbyak::Address GPR(const size_t index) const {
if constexpr (sizeof(T) == 1) { if constexpr (sizeof(T) == 1) {