summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
blob: a4df820c371560c5f3fc4ec28b8afee616257cc0 (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"
#include "response.h"
#include <bits/stdc++.h>

Cache::Cache(int lines, Storage *lower, int delay)
{
	this->data = new std::vector<std::array<signed 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; }