MMU: Mark IsOpcodeFlag() and IsNoExceptionFlag() as constexpr.
This commit is contained in:
parent
f284bfca45
commit
5d2fc0147e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue