aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2023-11-09 20:13:49 -0500
committerGitHub <noreply@github.com>2023-11-09 20:13:49 -0500
commit4f916978cd17bd2e83cfca233d0fa40153fda5f4 (patch)
tree75684cd5df12810f4c98ed1af59e9e2079c31023
parent5f576bd5c2e750b3cf5af4bb8d0d4e1c1f16cefc (diff)
parentf04be9849356cf013f4071429f6fd152a8e5e518 (diff)
downloadspike-4f916978cd17bd2e83cfca233d0fa40153fda5f4.zip
spike-4f916978cd17bd2e83cfca233d0fa40153fda5f4.tar.gz
spike-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.cc2
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();
}