diff options
Diffstat (limited to 'src/arch/arm/utility.cc')
-rw-r--r-- | src/arch/arm/utility.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arch/arm/utility.cc b/src/arch/arm/utility.cc index 7659e1e79..dec85ef65 100644 --- a/src/arch/arm/utility.cc +++ b/src/arch/arm/utility.cc @@ -313,6 +313,18 @@ isBigEndian64(ThreadContext *tc) } } +bool +badMode32(ThreadContext *tc, OperatingMode mode) +{ + return unknownMode32(mode) || !ArmSystem::haveEL(tc, opModeToEL(mode)); +} + +bool +badMode(ThreadContext *tc, OperatingMode mode) +{ + return unknownMode(mode) || !ArmSystem::haveEL(tc, opModeToEL(mode)); +} + Addr purifyTaggedAddr(Addr addr, ThreadContext *tc, ExceptionLevel el, TTBCR tcr) |