diff options
author | Megan Wachs <megan@sifive.com> | 2017-05-15 09:53:42 -0700 |
---|---|---|
committer | Megan Wachs <megan@sifive.com> | 2017-05-15 09:53:42 -0700 |
commit | f14da97c1209fb1f411a2d49e8088081ba9435cd (patch) | |
tree | 3b545f07963624d3de228fca7e705bf8f591d7c4 /riscv/remote_bitbang.cc | |
parent | 1eee4de6b306f0270da954b9f8c555e60dd4a7c2 (diff) | |
parent | 089f0fa4cf1885b2333f4522140ae3747f2e367b (diff) | |
download | spike-f14da97c1209fb1f411a2d49e8088081ba9435cd.zip spike-f14da97c1209fb1f411a2d49e8088081ba9435cd.tar.gz spike-f14da97c1209fb1f411a2d49e8088081ba9435cd.tar.bz2 |
Merge branch 'debug-0.13' into HEAD
Diffstat (limited to 'riscv/remote_bitbang.cc')
-rw-r--r-- | riscv/remote_bitbang.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscv/remote_bitbang.cc b/riscv/remote_bitbang.cc index 888032e..cff9ed7 100644 --- a/riscv/remote_bitbang.cc +++ b/riscv/remote_bitbang.cc @@ -164,8 +164,14 @@ void remote_bitbang_t::execute_commands() abort(); } } + + if (quit) { + fprintf(stderr, "Remote Bitbang received 'Q'\n"); + } + if (recv_end == 0 || quit) { // The remote disconnected. + fprintf(stderr, "Received nothing. Quitting.\n"); close(client_fd); client_fd = 0; break; |