diff options
author | Tim Newsome <tim@sifive.com> | 2017-02-21 20:22:10 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-02-21 20:22:10 -0800 |
commit | 21fb735d62ec9d22e5ac10180716db0d9b5b4217 (patch) | |
tree | 2c67c21967c80a6554f204a8d45f8463dfd4e303 /riscv/remote_bitbang.h | |
parent | 0e848d2f4376726e74bbf0cecb97ca15e28ca675 (diff) | |
download | riscv-isa-sim-21fb735d62ec9d22e5ac10180716db0d9b5b4217.zip riscv-isa-sim-21fb735d62ec9d22e5ac10180716db0d9b5b4217.tar.gz riscv-isa-sim-21fb735d62ec9d22e5ac10180716db0d9b5b4217.tar.bz2 |
Improve debug performance.
It's still pitiful, but less so. (5KB/s download speed.)
The tweaks involve switching to the other context as soon as it might be
helpful. The two contexts are executing code, and handling JTAG TAP
input.
Diffstat (limited to 'riscv/remote_bitbang.h')
-rw-r--r-- | riscv/remote_bitbang.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/remote_bitbang.h b/riscv/remote_bitbang.h index 289fbb3..1db4d55 100644 --- a/riscv/remote_bitbang.h +++ b/riscv/remote_bitbang.h @@ -21,6 +21,10 @@ private: int socket_fd; int client_fd; + static const ssize_t buf_size = 64 * 1024; + char recv_buf[buf_size]; + ssize_t recv_start, recv_end; + // Check for a client connecting, and accept if there is one. void accept(); // Execute any commands the client has for us. |