summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-03-11 21:16:25 +0000
committerGitHub <noreply@github.com>2025-03-11 21:16:25 +0000
commitf208e63ce553c6144a672cd35da23425fa7f86d1 (patch)
tree0574ee516499001244d33785a5fc380801c557c9 /inc/cache.h
parente24e3cd4d296599b9ef1b705846b1c868148b0fd (diff)
parentd534555fbb9562a819d34ea874a711d737d051ae (diff)
Merge pull request #25 from bdunahu/dev-sid
support for read word, write line in all levels of storage, cache load, dirty cache eviction, memory address wrapping
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 04f6181..17abcdd 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -20,11 +20,18 @@ class Cache : public Storage
Cache(Storage *lower, int delay);
~Cache();
- Response write(Accessor accessor, signed int data, int address) override;
- Response read(
+ Response
+ write_word(Accessor accessor, signed int data, int address) override;
+ Response write_line(
+ Accessor accessor,
+ std::array<signed int, LINE_SIZE> data_line,
+ int address) override;
+ Response read_line(
Accessor accessor,
int address,
- std::array<signed int, LINE_SIZE> &data) override;
+ std::array<signed int, LINE_SIZE> &data_line) override;
+ Response
+ read_word(Accessor accessor, int address, signed int &data) override;
/**
* Getter for the meta attribute.