libmicroemu 0.2.0
ARM Microcontroller Emulator Library
Loading...
Searching...
No Matches
libmicroemu::internal::Predicates Class Reference

Provides predicates for certain cpu states. More...

#include <predicates.h>

Static Public Member Functions

template<typename TCpuAccessor>
static bool IsThreadMode (const TCpuAccessor &cpua)
 Check if the cpu is in thread mode.
 
template<typename TCpuAccessor>
static bool IsHandlerMode (const TCpuAccessor &cpua)
 Check if the cpu is in handler mode.
 
template<typename TCpuAccessor>
static bool IsMainStack (const TCpuAccessor &cpua)
 Check if the cpu is using the main stack.
 
template<typename TCpuAccessor>
static bool IsProcessStack (const TCpuAccessor &cpua)
 Check if the cpu is using the process stack.
 
template<typename TCpuAccessor>
static bool IsCurrentModePrivileged (TCpuAccessor &cpua)
 Check if the cpu is in privileged mode.
 
template<typename TCpuAccessor>
static bool IsThumbMode (TCpuAccessor &cpua)
 Check if the cpu is in thumb mode.
 

Detailed Description

Provides predicates for certain cpu states.

Member Function Documentation

◆ IsCurrentModePrivileged()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsCurrentModePrivileged ( TCpuAccessor & cpua)
inlinestatic

Check if the cpu is in privileged mode.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is in privileged mode, false otherwise

◆ IsHandlerMode()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsHandlerMode ( const TCpuAccessor & cpua)
inlinestatic

Check if the cpu is in handler mode.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is in handler mode, false otherwise

◆ IsMainStack()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsMainStack ( const TCpuAccessor & cpua)
inlinestatic

Check if the cpu is using the main stack.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is using the main stack, false otherwise

◆ IsProcessStack()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsProcessStack ( const TCpuAccessor & cpua)
inlinestatic

Check if the cpu is using the process stack.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is using the process stack, false otherwise

◆ IsThreadMode()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsThreadMode ( const TCpuAccessor & cpua)
inlinestatic

Check if the cpu is in thread mode.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is in thread mode, false otherwise

◆ IsThumbMode()

template<typename TCpuAccessor>
static bool libmicroemu::internal::Predicates::IsThumbMode ( TCpuAccessor & cpua)
inlinestatic

Check if the cpu is in thumb mode.

Parameters
cpuaa reference to a cpu accessor
Returns
true if the cpu is in thumb mode, false otherwise

The documentation for this class was generated from the following file: