conditional_state: Break from translation when invalid NV instruction is hit

This commit is contained in:
MerryMage 2021-06-25 22:09:39 +01:00
parent 7946868af4
commit ea02a7d05d

View file

@ -32,6 +32,7 @@ bool IsConditionPassed(TranslatorVisitor& v, IR::Cond cond) {
if (cond == IR::Cond::NV) { if (cond == IR::Cond::NV) {
// NV conditional is obsolete // NV conditional is obsolete
v.cond_state = ConditionalState::Break;
v.RaiseException(Exception::UnpredictableInstruction); v.RaiseException(Exception::UnpredictableInstruction);
return false; return false;
} }