MMU: Mark IsOpcodeFlag() and IsNoExceptionFlag() as constexpr.

This commit is contained in:
Admiral H. Curtiss 2023-11-30 22:17:10 +01:00
parent f284bfca45
commit 5d2fc0147e
No known key found for this signature in database
GPG Key ID: F051B4C4044F33FB
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}