mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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
Block a user