From 22715bf5056f44b1da3184e0a24be3ed2e208d6f Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Mon, 27 Sep 2021 03:01:59 +0200 Subject: [PATCH] change mux behavior to avoid simulation deadlocks --- src/hilight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hilight.c b/src/hilight.c index f71ee52c..d9ded2e8 100644 --- a/src/hilight.c +++ b/src/hilight.c @@ -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;