From 21fb735d62ec9d22e5ac10180716db0d9b5b4217 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 21 Feb 2017 20:22:10 -0800 Subject: 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. --- riscv/remote_bitbang.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'riscv/remote_bitbang.h') 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. -- cgit v1.1