forked from pulp-platform/debug_bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.h
36 lines (29 loc) · 736 Bytes
/
bridge.h
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
32
33
34
35
36
#ifndef BRIDGE_H
#define BRIDGE_H
#include "mem_zynq_spi.h"
#include "mem_zynq_apb_spi.h"
#include "sim.h"
#include "debug_if.h"
#include "cache.h"
#include "breakpoints.h"
#include "rsp.h"
#include "log.h"
enum Platforms { unknown, PULPino, PULP, GAP };
class Bridge : public LogIF {
public:
void initBridge(Platforms platform, int portNumber, MemIF *memIF, LogIF *log);
Bridge(Platforms platform, int portNumber, LogIF *log=NULL);
Bridge(Platforms platform, MemIF *memIF, LogIF *log=NULL);
~Bridge();
void mainLoop();
void user(char *str, ...);
void debug(char *str, ...);
private:
MemIF* mem;
std::list<DbgIF*> dbgifs;
Cache* cache;
Rsp* rsp;
BreakPoints* bp;
LogIF *log;
};
#endif