summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-03-11 15:54:22 -0400
committerSiddarth-Suresh <65844402+Siddarth-Suresh@users.noreply.github.com>2025-03-11 15:54:22 -0400
commit7eea92651e3f7c1a60726b3646dc96fe6118c1d7 (patch)
tree16b169816c5475ab07bc0c2df2ebd50b6884acc8 /inc/cache.h
parent21187ae663a8450553881851e8450315c8d9ca1c (diff)
read has to wait until cache has the right line from memory after eviction, write only has to wait until eviction and does not care about line replacement in cache from memory
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 20a40c2..7a1a380 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -1,6 +1,7 @@
#ifndef CACHE_H
#define CACHE_H
#include "definitions.h"
+#include "operation.h"
#include "storage.h"
#include <array>
#include <ostream>
@@ -42,7 +43,7 @@ class Cache : public Storage
* cache level to true, and the victim line is chosen/written back.
* @param the address that must be present in cache.
*/
- void fetch_resource(int address);
+ void fetch_resource(Operation op, int address);
/**
* An array of metadata about elements in `data`.
* If the first value of an element is negative, the corresponding