diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/cache.h | 3 | ||||
-rw-r--r-- | inc/operation.h | 9 |
2 files changed, 11 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 diff --git a/inc/operation.h b/inc/operation.h new file mode 100644 index 0000000..a35344e --- /dev/null +++ b/inc/operation.h @@ -0,0 +1,9 @@ +#ifndef OPERATION_H +#define OPERATION_H + +enum Operation { + READ, + WRITE +}; + +#endif /* OPERATION_H_INCLUDED */
\ No newline at end of file |