mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 06:32:56 +00:00
Arm64Emitter: Make SystemHint enum an enum class
Avoids polluting the namespace and makes the members strongly typed.
This commit is contained in:
parent
5011c155ec
commit
f21c740919
@ -964,7 +964,7 @@ FixupBranch ARM64XEmitter::CBZ(ARM64Reg Rt)
|
||||
branch.ptr = m_code;
|
||||
branch.type = FixupBranch::Type::CBZ;
|
||||
branch.reg = Rt;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::CBNZ(ARM64Reg Rt)
|
||||
@ -973,7 +973,7 @@ FixupBranch ARM64XEmitter::CBNZ(ARM64Reg Rt)
|
||||
branch.ptr = m_code;
|
||||
branch.type = FixupBranch::Type::CBNZ;
|
||||
branch.reg = Rt;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::B(CCFlags cond)
|
||||
@ -982,7 +982,7 @@ FixupBranch ARM64XEmitter::B(CCFlags cond)
|
||||
branch.ptr = m_code;
|
||||
branch.type = FixupBranch::Type::BConditional;
|
||||
branch.cond = cond;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::TBZ(ARM64Reg Rt, u8 bit)
|
||||
@ -992,7 +992,7 @@ FixupBranch ARM64XEmitter::TBZ(ARM64Reg Rt, u8 bit)
|
||||
branch.type = FixupBranch::Type::TBZ;
|
||||
branch.reg = Rt;
|
||||
branch.bit = bit;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::TBNZ(ARM64Reg Rt, u8 bit)
|
||||
@ -1002,7 +1002,7 @@ FixupBranch ARM64XEmitter::TBNZ(ARM64Reg Rt, u8 bit)
|
||||
branch.type = FixupBranch::Type::TBNZ;
|
||||
branch.reg = Rt;
|
||||
branch.bit = bit;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::B()
|
||||
@ -1010,7 +1010,7 @@ FixupBranch ARM64XEmitter::B()
|
||||
FixupBranch branch{};
|
||||
branch.ptr = m_code;
|
||||
branch.type = FixupBranch::Type::B;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
FixupBranch ARM64XEmitter::BL()
|
||||
@ -1018,7 +1018,7 @@ FixupBranch ARM64XEmitter::BL()
|
||||
FixupBranch branch{};
|
||||
branch.ptr = m_code;
|
||||
branch.type = FixupBranch::Type::BL;
|
||||
HINT(HINT_NOP);
|
||||
HINT(SystemHint::NOP);
|
||||
return branch;
|
||||
}
|
||||
|
||||
@ -1239,7 +1239,7 @@ void ARM64XEmitter::CNTVCT(Arm64Gen::ARM64Reg Rt)
|
||||
|
||||
void ARM64XEmitter::HINT(SystemHint op)
|
||||
{
|
||||
EncodeSystemInst(0, 3, 2, 0, op, WSP);
|
||||
EncodeSystemInst(0, 3, 2, 0, static_cast<u32>(op), WSP);
|
||||
}
|
||||
void ARM64XEmitter::CLREX()
|
||||
{
|
||||
|
@ -354,14 +354,14 @@ enum PStateField
|
||||
FIELD_FPSR = 0x341,
|
||||
};
|
||||
|
||||
enum SystemHint
|
||||
enum class SystemHint
|
||||
{
|
||||
HINT_NOP = 0,
|
||||
HINT_YIELD,
|
||||
HINT_WFE,
|
||||
HINT_WFI,
|
||||
HINT_SEV,
|
||||
HINT_SEVL,
|
||||
NOP,
|
||||
YIELD,
|
||||
WFE,
|
||||
WFI,
|
||||
SEV,
|
||||
SEVL,
|
||||
};
|
||||
|
||||
enum BarrierType
|
||||
|
@ -322,7 +322,7 @@ bool JitArm64::HandleFastmemFault(uintptr_t access_address, SContext* ctx)
|
||||
|
||||
const u32 num_insts_max = fastmem_area_length / 4 - 1;
|
||||
for (u32 i = 0; i < num_insts_max; ++i)
|
||||
emitter.HINT(HINT_NOP);
|
||||
emitter.HINT(SystemHint::NOP);
|
||||
|
||||
m_fault_to_handler.erase(slow_handler_iter);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user