blob: 2a940ade707947d25af27a0be9146bca11741b0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// See LICENSE for license details.
#ifndef _HTIF_H
#define _HTIF_H
#include <fesvr/htif_pthread.h>
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<std::string>& args);
bool tick();
private:
sim_t* sim;
bool reset;
uint8_t seqno;
void tick_once();
bool done();
};
#endif
|