mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 12:04:56 +00:00
Arm64Emitter: Make BarrierType enum an enum class
Prevents namespace pollution and enforces strong typing.
This commit is contained in:
parent
f21c740919
commit
5c3f2fde22
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue