mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
MMU: Mark IsOpcodeFlag() and IsNoExceptionFlag() as constexpr.
This commit is contained in:
@ -85,12 +85,12 @@ MMU::~MMU() = default;
|
||||
return Common::swap64(val);
|
||||
}
|
||||
|
||||
static bool IsOpcodeFlag(XCheckTLBFlag flag)
|
||||
static constexpr bool IsOpcodeFlag(XCheckTLBFlag flag)
|
||||
{
|
||||
return flag == XCheckTLBFlag::Opcode || flag == XCheckTLBFlag::OpcodeNoException;
|
||||
}
|
||||
|
||||
static bool IsNoExceptionFlag(XCheckTLBFlag flag)
|
||||
static constexpr bool IsNoExceptionFlag(XCheckTLBFlag flag)
|
||||
{
|
||||
return flag == XCheckTLBFlag::NoException || flag == XCheckTLBFlag::OpcodeNoException;
|
||||
}
|
||||
|
Reference in New Issue
Block a user