aboutsummaryrefslogtreecommitdiff
path: root/riscv/htif.h
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@eecs.berkeley.edu>2012-01-31 17:31:33 -0800
committerAndrew Waterman <waterman@eecs.berkeley.edu>2012-01-31 17:31:33 -0800
commit23688da201a3b668deaa3e7cc184060b678f2058 (patch)
tree935f8f3cf359fb023982a645e2880f4cbb3b15e3 /riscv/htif.h
parentace6db857d06e01e06677a4c1df6596dfe793677 (diff)
downloadriscv-isa-sim-23688da201a3b668deaa3e7cc184060b678f2058.zip
riscv-isa-sim-23688da201a3b668deaa3e7cc184060b678f2058.tar.gz
riscv-isa-sim-23688da201a3b668deaa3e7cc184060b678f2058.tar.bz2
poll HTIF occasionally
Diffstat (limited to 'riscv/htif.h')
-rw-r--r--riscv/htif.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/htif.h b/riscv/htif.h
index d7a8c89..805cc4f 100644
--- a/riscv/htif.h
+++ b/riscv/htif.h
@@ -22,6 +22,9 @@ public:
void wait_for_tohost_write();
void wait_for_fromhost_write();
+ // check to see if there's a pending packet and process it if so
+ void poll();
+
private:
sim_t* sim;
int tohost_fd;