summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
blob: 34bdc5fd30cf8fa186f830492990a75a3637cf92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <cache.h>

Cache::Cache(int lines, Storage *lower, int delay)
{
	this->data = new std::vector<std::array<unsigned int, 4>>;
	this->data->resize(lines);
	this->lower = lower;
	this->delay = delay;
	this->lower = nullptr;
}

Cache::~Cache() { delete this->data; }

Response *Cache::write(Accessor accessor, signed int data, int address)
{
	return new Response();
}

Response *Cache::read(Accessor accessor, int address) { return nullptr; }

int **Cache::view(int base, int lines) { return nullptr; }