aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-04-18 14:34:51 -0700
committerMegan Wachs <megan@sifive.com>2017-04-18 14:34:51 -0700
commit089f0fa4cf1885b2333f4522140ae3747f2e367b (patch)
tree7019a9c3ec80ad1f6a2466ce84bce767bd44c60a
parentc9fa7a3c4b77e24bdd5a1c70f26d6119ada40781 (diff)
downloadspike-089f0fa4cf1885b2333f4522140ae3747f2e367b.zip
spike-089f0fa4cf1885b2333f4522140ae3747f2e367b.tar.gz
spike-089f0fa4cf1885b2333f4522140ae3747f2e367b.tar.bz2
debug: move remote_bitbang into riscv
-rw-r--r--riscv/remote_bitbang.cc (renamed from remote_bitbang.cc)6
-rw-r--r--riscv/remote_bitbang.h (renamed from remote_bitbang.h)0
2 files changed, 6 insertions, 0 deletions
diff --git a/remote_bitbang.cc b/riscv/remote_bitbang.cc
index 9d0ca90..75aa8fe 100644
--- a/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;
diff --git a/remote_bitbang.h b/riscv/remote_bitbang.h
index 1db4d55..1db4d55 100644
--- a/remote_bitbang.h
+++ b/riscv/remote_bitbang.h