Support debug system bus access.
[riscv-isa-sim.git] / riscv / remote_bitbang.cc
index 75aa8fe53bcf6e564ecf9e3c816ff3683bff15c4..21306dd166f46fd3ebed2d1bf034550b1e6f5ed4 100644 (file)
@@ -157,18 +157,18 @@ 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);
         abort();
       }
     }
-    
+
     if (quit) {
       fprintf(stderr, "Remote Bitbang received 'Q'\n");
     }
-    
+
     if (recv_end == 0 || quit) {
       // The remote disconnected.
       fprintf(stderr, "Received nothing. Quitting.\n");