Arm64Emitter: Make BarrierType enum an enum class

Prevents namespace pollution and enforces strong typing.
This commit is contained in:
Lioncash 2020-12-30 20:18:03 -05:00
parent f21c740919
commit 5c3f2fde22
2 changed files with 4 additions and 4 deletions

View File

@ -1247,15 +1247,15 @@ void ARM64XEmitter::CLREX()
}
void ARM64XEmitter::DSB(BarrierType type)
{
EncodeSystemInst(0, 3, 3, type, 4, WSP);
EncodeSystemInst(0, 3, 3, static_cast<u32>(type), 4, WSP);
}
void ARM64XEmitter::DMB(BarrierType type)
{
EncodeSystemInst(0, 3, 3, type, 5, WSP);
EncodeSystemInst(0, 3, 3, static_cast<u32>(type), 5, WSP);
}
void ARM64XEmitter::ISB(BarrierType type)
{
EncodeSystemInst(0, 3, 3, type, 6, WSP);
EncodeSystemInst(0, 3, 3, static_cast<u32>(type), 6, WSP);
}
// Add/Subtract (extended register)

View File

@ -364,7 +364,7 @@ enum class SystemHint
SEVL,
};
enum BarrierType
enum class BarrierType
{
OSHLD = 1,
OSHST = 2,