From a5e6db9bdd677f18508643913e8810aae238d889 Mon Sep 17 00:00:00 2001 From: Vacantron Chen <95543602+vacantron@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:36:30 +0800 Subject: [PATCH] Fix incorrect condition in background thread --- src/riscv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riscv.c b/src/riscv.c index a0d385cc..28103b23 100644 --- a/src/riscv.c +++ b/src/riscv.c @@ -192,7 +192,7 @@ static pthread_t t2c_thread; static void *t2c_runloop(void *arg) { riscv_t *rv = (riscv_t *) arg; - while (rv->quit) { + while (!rv->quit) { if (!list_empty(&rv->wait_queue)) { queue_entry_t *entry = list_last_entry(&rv->wait_queue, queue_entry_t, list);