A32: Add hook_hint_instructions option

This commit is contained in:
MerryMage
2019-07-25 12:08:06 +01:00
parent 2f2a859615
commit 396116ee61
5 changed files with 60 additions and 8 deletions

View File

@@ -643,26 +643,41 @@ bool ThumbTranslatorVisitor::thumb16_NOP() {
// SEV<c>
bool ThumbTranslatorVisitor::thumb16_SEV() {
if (!options.hook_hint_instructions) {
return true;
}
return RaiseException(Exception::SendEvent);
}
// SEVL<c>
bool ThumbTranslatorVisitor::thumb16_SEVL() {
if (!options.hook_hint_instructions) {
return true;
}
return RaiseException(Exception::SendEventLocal);
}
// WFE<c>
bool ThumbTranslatorVisitor::thumb16_WFE() {
if (!options.hook_hint_instructions) {
return true;
}
return RaiseException(Exception::WaitForEvent);
}
// WFI<c>
bool ThumbTranslatorVisitor::thumb16_WFI() {
if (!options.hook_hint_instructions) {
return true;
}
return RaiseException(Exception::WaitForInterrupt);
}
// YIELD<c>
bool ThumbTranslatorVisitor::thumb16_YIELD() {
if (!options.hook_hint_instructions) {
return true;
}
return RaiseException(Exception::Yield);
}