mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-08 03:32:56 +00:00
A64: Implement BRK
Currently, we can just implement this as part of the exception interface, similar to how it's done for the A32 interface with BKPT.
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
|
||||
namespace Dynarmic::A64 {
|
||||
|
||||
bool TranslatorVisitor::BRK([[maybe_unused]] Imm<16> imm16) {
|
||||
ir.ExceptionRaised(Exception::Breakpoint);
|
||||
ir.SetTerm(IR::Term::CheckHalt{IR::Term::ReturnToDispatch{}});
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::SVC(Imm<16> imm16) {
|
||||
ir.PushRSB(ir.current_location->AdvancePC(4));
|
||||
ir.SetPC(ir.Imm64(ir.current_location->PC() + 4));
|
||||
|
||||
Reference in New Issue
Block a user