impl: Update PC when raising exception

This commit is contained in:
MerryMage 2018-02-21 21:02:42 +00:00
parent 49cc6d7fad
commit be5047c7c2

View file

@ -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;