From 20fe698a4074df4abe02f14a1a14481770e90abc Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 6 Mar 2025 00:03:00 -0500 Subject: Storage.view method, some initial tests --- src/storage/cache.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/storage/cache.cc') diff --git a/src/storage/cache.cc b/src/storage/cache.cc index 34bdc5f..a4df820 100644 --- a/src/storage/cache.cc +++ b/src/storage/cache.cc @@ -1,8 +1,10 @@ -#include +#include "cache.h" +#include "response.h" +#include Cache::Cache(int lines, Storage *lower, int delay) { - this->data = new std::vector>; + this->data = new std::vector>; this->data->resize(lines); this->lower = lower; this->delay = delay; @@ -17,5 +19,3 @@ Response *Cache::write(Accessor accessor, signed int data, int address) } Response *Cache::read(Accessor accessor, int address) { return nullptr; } - -int **Cache::view(int base, int lines) { return nullptr; } -- cgit v1.2.3