This commit is contained in:
Toby Jaffey 2025-12-14 00:18:06 +00:00
parent 173d5056a5
commit 179466eae4

View file

@ -88,10 +88,8 @@ static void setup_err_evt(uvm32_state_t *vmst, uvm32_evt_t *evt) {
}
static void setStatus(uvm32_state_t *vmst, uvm32_status_t newStatus) {
if (vmst->_status == UVM32_STATUS_ERROR) {
// always stay in error state until a uvm32_init()
return;
} else {
if (vmst->_status != UVM32_STATUS_ERROR) {
// always stay in error state until a uvm32_init() / uvm32_clearError()
vmst->_status = newStatus;
}
}