diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-01-11 15:38:00 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-01-11 16:40:28 -0800 |
commit | 2cb5cf5d66d5df8f310a335032d836ad5f0dc977 (patch) | |
tree | 124dc4a6bdf9d306beaf8b29962c2798cd91b6a5 /riscv/execute.cc | |
parent | a4d62fd274ae64cb06cff2d97789c29a3c2e0da4 (diff) | |
download | riscv-isa-sim-2cb5cf5d66d5df8f310a335032d836ad5f0dc977.zip riscv-isa-sim-2cb5cf5d66d5df8f310a335032d836ad5f0dc977.tar.gz riscv-isa-sim-2cb5cf5d66d5df8f310a335032d836ad5f0dc977.tar.bz2 |
For NS16550 UART, poll stdin less oftentmp
On my Mac Mini, calling `poll()` on stdin takes around 10 us, and we
are invoking it every 20 us or so. Reduce the frequency of polling
by 16x when not actively receiving data, thereby reducing the fraction
of time spent in `poll()` to a trivial amount.
Diffstat (limited to 'riscv/execute.cc')
0 files changed, 0 insertions, 0 deletions