From 5e75bd41a463b309d69f7e4009a2a6efb5d6b657 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 7 Feb 2021 14:17:46 +0000 Subject: [PATCH] ITState: Handle not-in-IT-block case in Cond --- src/frontend/A32/ITState.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/A32/ITState.h b/src/frontend/A32/ITState.h index 6a782fbc..4c267073 100644 --- a/src/frontend/A32/ITState.h +++ b/src/frontend/A32/ITState.h @@ -22,6 +22,9 @@ public: } IR::Cond Cond() const { + if (value == 0b00000000) { + return IR::Cond::AL; + } return static_cast(Common::Bits<4, 7>(value)); }