forked from pulp-platform/debug_bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cache.h
40 lines (29 loc) · 775 Bytes
/
cache.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
37
38
39
40
#ifndef CACHE_H
#define CACHE_H
#include "mem.h"
#include "debug_if.h"
#include <list>
class Cache {
public:
Cache(MemIF* mem, std::list<DbgIF*>* dbgIfList) { m_mem = mem; p_dbgIfList = dbgIfList; }
virtual bool flush() { flushCores(); return true; }
void flushCores();
protected:
MemIF* m_mem;
std::list<DbgIF*>* p_dbgIfList;
};
class PulpCache : public Cache {
public:
PulpCache(MemIF* mem, std::list<DbgIF*>* p_dbgIfList, unsigned int addr);
virtual bool flush();
protected:
unsigned int m_addr;
};
class GAPCache : public PulpCache {
public:
GAPCache(MemIF* mem, std::list<DbgIF*>* p_dbgIfList, unsigned int addr, unsigned int fc_addr);
virtual bool flush();
protected:
unsigned int m_fc_addr;
};
#endif