impl: Update PC when raising exception
This commit is contained in:
parent
49cc6d7fad
commit
be5047c7c2
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ bool TranslatorVisitor::UnallocatedEncoding() {
|
|||
}
|
||||
|
||||
bool TranslatorVisitor::RaiseException(Exception exception) {
|
||||
ir.SetPC(ir.Imm64(ir.current_location->PC() + 4));
|
||||
ir.ExceptionRaised(exception);
|
||||
ir.SetTerm(IR::Term::CheckHalt{IR::Term::ReturnToDispatch{}});
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue