Skip to content

Commit

Permalink
[ot] hw/jtag: tap_ctrl_rbb: ensure socket is configured with nodelay
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Blot <[email protected]>
  • Loading branch information
rivos-eblot committed Dec 5, 2024
1 parent 470fcba commit b23df94
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hw/jtag/tap_ctrl_rbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "qapi/error.h"
#include "qom/object.h"
#include "chardev/char-fe.h"
#include "chardev/char-socket.h"
#include "chardev/char.h"
#include "hw/jtag/tap_ctrl.h"
#include "hw/jtag/tap_ctrl_rbb.h"
Expand Down Expand Up @@ -511,6 +512,12 @@ static void tap_ctrl_rbb_chr_event_hander(void *opaque, QEMUChrEvent event)
return;
}

Object *sock;
sock = object_dynamic_cast(OBJECT(tap->chr.chr), TYPE_CHARDEV_SOCKET);
if (sock) {
qio_channel_set_delay(SOCKET_CHARDEV(sock)->ioc, false);
}

tap_ctrl_rbb_tap_reset(tap);
}
}
Expand Down

0 comments on commit b23df94

Please sign in to comment.