A32: Allow hooking of hint instructions in ARM mode.

Mirrors the hooking functionality from the AArch64 frontend to make the
behavior of both consistent.
This commit is contained in:
Lioncash
2019-05-01 21:54:39 -04:00
committed by MerryMage
parent dd79a3dc6b
commit 966e04d03d
5 changed files with 58 additions and 5 deletions

View File

@@ -24,8 +24,18 @@ enum class Exception {
/// An unpredictable instruction is to be executed. Implementation-defined behaviour should now happen.
/// This behaviour is up to the user of this library to define.
UnpredictableInstruction,
/// A SEV instruction was executed. The event register of all PEs should be set.
SendEvent,
/// A WFI instruction was executed. You may now enter a low-power state.
WaitForInterrupt,
/// A WFE instruction was executed. You may now enter a low-power state if the event register is clear.
WaitForEvent,
/// A YIELD instruction was executed.
Yield,
/// A BKPT instruction was executed.
Breakpoint,
/// A PLD instruction was executed.
PreloadData,
};
/// These function pointers may be inserted into compiled code.