// See LICENSE for license details. #ifndef _HTIF_H #define _HTIF_H #include class sim_t; struct packet; // this class implements the host-target interface for program loading, etc. // a simpler implementation would implement the high-level interface // (read/write cr, read/write chunk) directly, but we implement the lower- // level serialized interface to be more similar to real target machines. class htif_isasim_t : public htif_pthread_t { public: htif_isasim_t(sim_t* _sim, const std::vector& args); bool tick(); bool done(); private: sim_t* sim; bool reset; uint8_t seqno; void tick_once(); }; #endif