summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-11 16:30:40 -0400
committerbd <bdunahu@operationnull.com>2025-03-11 16:30:40 -0400
commitaed0a13d39bfe0b189ea43117aeb2e8b9188c3d9 (patch)
tree27633137381adfe656a9a1175d03cb164983549f /inc
parent7eea92651e3f7c1a60726b3646dc96fe6118c1d7 (diff)
remove operation.h and branch determined by read/write in cache load
Diffstat (limited to 'inc')
-rw-r--r--inc/cache.h3
-rw-r--r--inc/operation.h9
2 files changed, 1 insertions, 11 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 7a1a380..20a40c2 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -1,7 +1,6 @@
#ifndef CACHE_H
#define CACHE_H
#include "definitions.h"
-#include "operation.h"
#include "storage.h"
#include <array>
#include <ostream>
@@ -43,7 +42,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(Operation op, int address);
+ void fetch_resource(int address);
/**
* An array of metadata about elements in `data`.
* If the first value of an element is negative, the corresponding
diff --git a/inc/operation.h b/inc/operation.h
deleted file mode 100644
index a35344e..0000000
--- a/inc/operation.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef OPERATION_H
-#define OPERATION_H
-
-enum Operation {
- READ,
- WRITE
-};
-
-#endif /* OPERATION_H_INCLUDED */ \ No newline at end of file