mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Arm64Emitter: Make BarrierType enum an enum class
Prevents namespace pollution and enforces strong typing.
This commit is contained in:
parent
f21c740919
commit
5c3f2fde22
@ -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)
|
||||
|
@ -364,7 +364,7 @@ enum class SystemHint
|
||||
SEVL,
|
||||
};
|
||||
|
||||
enum BarrierType
|
||||
enum class BarrierType
|
||||
{
|
||||
OSHLD = 1,
|
||||
OSHST = 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user