summaryrefslogtreecommitdiff
path: root/src/storage/cache.cc
blob: efcaa3233261c174c079c9fb913694270b32d55f (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; }