diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-11-09 20:13:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-09 20:13:49 -0500 |
commit | 4f916978cd17bd2e83cfca233d0fa40153fda5f4 (patch) | |
tree | 75684cd5df12810f4c98ed1af59e9e2079c31023 | |
parent | 5f576bd5c2e750b3cf5af4bb8d0d4e1c1f16cefc (diff) | |
parent | f04be9849356cf013f4071429f6fd152a8e5e518 (diff) | |
download | riscv-isa-sim-4f916978cd17bd2e83cfca233d0fa40153fda5f4.zip riscv-isa-sim-4f916978cd17bd2e83cfca233d0fa40153fda5f4.tar.gz riscv-isa-sim-4f916978cd17bd2e83cfca233d0fa40153fda5f4.tar.bz2 |
Merge pull request #1498 from f0rget-the-sad/htif-stop-on-signal
fesvr/htif: allow exit on SIGINT.
-rw-r--r-- | fesvr/htif.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fesvr/htif.cc b/fesvr/htif.cc index 3f93f7b..8b5eb8d 100644 --- a/fesvr/htif.cc +++ b/fesvr/htif.cc @@ -253,7 +253,7 @@ int htif_t::run() std::bind(enq_func, &fromhost_queue, std::placeholders::_1); if (tohost_addr == 0) { - while (true) + while (!signal_exit) idle(); } |