mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-02 14:18:51 +00:00
Arm64Emitter: Make PStateField enum an enum class
Prevents namespace pollution and makes the enum members strongly typed.
This commit is contained in:
parent
5c3f2fde22
commit
d87ec71615
2 changed files with 17 additions and 17 deletions
|
@ -342,16 +342,16 @@ struct FixupBranch
|
|||
ARM64Reg reg;
|
||||
};
|
||||
|
||||
enum PStateField
|
||||
enum class PStateField
|
||||
{
|
||||
FIELD_SPSel = 0,
|
||||
FIELD_DAIFSet,
|
||||
FIELD_DAIFClr,
|
||||
FIELD_NZCV, // The only system registers accessible from EL0 (user space)
|
||||
FIELD_PMCR_EL0,
|
||||
FIELD_PMCCNTR_EL0,
|
||||
FIELD_FPCR = 0x340,
|
||||
FIELD_FPSR = 0x341,
|
||||
SPSel = 0,
|
||||
DAIFSet,
|
||||
DAIFClr,
|
||||
NZCV, // The only system registers accessible from EL0 (user space)
|
||||
PMCR_EL0,
|
||||
PMCCNTR_EL0,
|
||||
FPCR = 0x340,
|
||||
FPSR = 0x341,
|
||||
};
|
||||
|
||||
enum class SystemHint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue