change mux behavior to avoid simulation deadlocks

This commit is contained in:
Stefan Frederik 2021-09-27 03:01:59 +02:00
parent 72b356df3c
commit 22715bf505
1 changed files with 1 additions and 1 deletions

View File

@ -1176,7 +1176,7 @@ int eval_logic_expr(int inst, int output)
if(s < 2) {
stack[sp - 3] = (s == 0) ? stack[sp - 3] : stack[sp - 2];
}
else stack[sp - 3] = 2;
else stack[sp - 3] = 3; /* setting to 2 (X) leads to simulation deadlocks */
sp -=2;
}
break;