summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
blob: f4f60ba7500a9cdf6aaf5d5a5f0f4518dee906e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "cache.h"
#include "definitions.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, LINE_SIZE>>;
	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; }