fixup! JitX64: Move thumb_BLX_* variables below ArmDecoder::Visitor functions

This commit is contained in:
MerryMage 2016-04-05 09:54:43 +01:00
parent 10786333b3
commit b5e96a5b77
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ void JitX64::CompileCallHost(const void* const fn) {
ASSERT(reg_alloc.JitStateReg() != RSP); ASSERT(reg_alloc.JitStateReg() != RSP);
code->MOV(64, R(RSP), MJitStateHostReturnRSP()); code->MOV(64, R(RSP), MJitStateHostReturnRSP());
const u64 distance = reinterpret_cast<const u64>(fn) - (reinterpret_cast<const u64>(code->GetCodePtr()) + 5); const uintptr_t distance = reinterpret_cast<uintptr_t>(fn) - (reinterpret_cast<uintptr_t>(code->GetCodePtr()) + 5);
if (distance >= 0x0000000080000000ULL && distance < 0xFFFFFFFF80000000ULL) { if (distance >= 0x0000000080000000ULL && distance < 0xFFFFFFFF80000000ULL) {
// Far call // Far call
code->MOV(64, R(RAX), ImmPtr(fn)); code->MOV(64, R(RAX), ImmPtr(fn));

View File

@ -421,12 +421,12 @@ private:
// Thumb specific instructions // Thumb specific instructions
void thumb_B(Cond cond, ArmImm8 imm8) override; void thumb_B(Cond cond, ArmImm8 imm8) override;
void thumb_B(ArmImm11 imm11) override; void thumb_B(ArmImm11 imm11) override;
void thumb_BLX_prefix(ArmImm11 imm11) override;
void thumb_BLX_suffix(bool L, ArmImm11 imm11) override;
ArmImm11 thumb_BLX_prefix_imm11 = 0; ArmImm11 thumb_BLX_prefix_imm11 = 0;
bool thumb_BLX_prefix_executed = false; bool thumb_BLX_prefix_executed = false;
bool thumb_BLX_suffix_executed = false; bool thumb_BLX_suffix_executed = false;
void thumb_BLX_prefix(ArmImm11 imm11) override;
void thumb_BLX_suffix(bool L, ArmImm11 imm11) override;
}; };
} // namespace JitX64 } // namespace JitX64