diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2012-01-31 17:31:33 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2012-01-31 17:31:33 -0800 |
commit | 23688da201a3b668deaa3e7cc184060b678f2058 (patch) | |
tree | 935f8f3cf359fb023982a645e2880f4cbb3b15e3 /riscv/htif.h | |
parent | ace6db857d06e01e06677a4c1df6596dfe793677 (diff) | |
download | riscv-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.h | 3 |
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; |