summaryrefslogtreecommitdiff
path: root/inc/storage.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-08 11:36:17 -0500
committerbd <bdunahu@operationnull.com>2025-03-08 11:36:17 -0500
commitc5f26a0bfdaafc8d49c88d2016df1724b64e5271 (patch)
tree964ced6682b34a1ee536c1a86e6c5b367ef17a77 /inc/storage.h
parent3221a2c310afb6ed124d6b67afda110d4b8dcade (diff)
Refactor function return scheme
Diffstat (limited to 'inc/storage.h')
-rw-r--r--inc/storage.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/storage.h b/inc/storage.h
index 841c531..a38f17d 100644
--- a/inc/storage.h
+++ b/inc/storage.h
@@ -7,7 +7,7 @@
#include <vector>
enum Accessor {
- MEMORY,
+ MEM,
FETCH,
L1CACHE,
IDLE,
@@ -24,8 +24,7 @@ class Storage
* @param the address to write to.
* @return a status code reflecting the state of the request.
*/
- virtual Response *
- write(Accessor accessor, signed int data, int address) = 0;
+ virtual Response write(Accessor accessor, signed int data, int address) = 0;
/**
* Get the data at `address`.
* @param the source making the request.
@@ -33,7 +32,7 @@ class Storage
* @return a status code reflecting the state of the request, and the
* data being returned.
*/
- virtual Response *read(Accessor accessor, int address) = 0;
+ virtual Response read(Accessor accessor, int address) = 0;
/**
* Sidedoor view of `lines` of memory starting at `base`.
* @param The base line to start getting memory from.