mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 04:04:30 +01:00
A32: Implement BKPT
This commit is contained in:
parent
f023bbb893
commit
865a30eb0d
2 changed files with 12 additions and 2 deletions
|
|
@ -6,10 +6,18 @@
|
|||
|
||||
#include "translate_arm.h"
|
||||
|
||||
#include "dynarmic/A32/config.h"
|
||||
|
||||
namespace Dynarmic::A32 {
|
||||
|
||||
bool ArmTranslatorVisitor::arm_BKPT(Cond /*cond*/, Imm12 /*imm12*/, Imm4 /*imm4*/) {
|
||||
return InterpretThisInstruction();
|
||||
bool ArmTranslatorVisitor::arm_BKPT(Cond cond, Imm12 /*imm12*/, Imm4 /*imm4*/) {
|
||||
if (cond != Cond::AL) {
|
||||
return UnpredictableInstruction();
|
||||
}
|
||||
|
||||
ir.ExceptionRaised(Exception::Breakpoint);
|
||||
ir.SetTerm(IR::Term::CheckHalt{IR::Term::ReturnToDispatch{}});
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ArmTranslatorVisitor::arm_SVC(Cond cond, Imm24 imm24) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue