From: Palmer Dabbelt Date: Wed, 26 Apr 2017 16:13:49 +0000 (-0700) Subject: Don't spin on the remote bitbang reads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f346fd7e050c6e4f518f642fa69d742ebebaac4;p=riscv-isa-sim.git Don't spin on the remote bitbang reads --- diff --git a/riscv/remote_bitbang.cc b/riscv/remote_bitbang.cc index 9d0ca90..888032e 100644 --- a/riscv/remote_bitbang.cc +++ b/riscv/remote_bitbang.cc @@ -157,7 +157,7 @@ void remote_bitbang_t::execute_commands() if (recv_end == -1) { if (errno == EAGAIN) { - // We'll try again the next call. + break; } else { fprintf(stderr, "remote_bitbang failed to read on socket: %s (%d)\n", strerror(errno), errno);