mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-12 01:16:30 +00:00
A32: Add hook_hint_instructions option
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user