summaryrefslogtreecommitdiff
path: root/inc/cache.h
diff options
context:
space:
mode:
authorSiddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com>2025-03-08 21:07:09 -0500
committerGitHub <noreply@github.com>2025-03-08 21:07:09 -0500
commit212a47482c5c037720aef726fcb2b7bb3a3acd67 (patch)
treee76871ceee74d36a660d5347c694493411426a7b /inc/cache.h
parentf8ed20ddbcb602ca0c5eea57fb78fb42d008f797 (diff)
parent5a24c4b2012cd2d5fe954deb3b973cb6125e860d (diff)
Merge pull request #14 from bdunahu/bdunahuer
Storage.view + Dram.store methods, tests
Diffstat (limited to 'inc/cache.h')
-rw-r--r--inc/cache.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/cache.h b/inc/cache.h
index 101cd6e..f1fb942 100644
--- a/inc/cache.h
+++ b/inc/cache.h
@@ -8,7 +8,7 @@ class Cache : public Storage
/**
* Constructor.
* @param The number of `lines` contained in memory. The total number of
- * words is this number multiplied by 4.
+ * words is this number multiplied by LINE_SIZE.
* @param The next lowest level in storage. Methods from this object are
* called in case of a cache miss.
* @param The number of clock cycles each access takes.
@@ -17,9 +17,8 @@ class Cache : public Storage
Cache(int lines, Storage *lower, int delay);
~Cache();
- Response *write(Accessor accessor, signed int data, int address) override;
- Response *read(Accessor accessor, int address) override;
- int **view(int base, int lines) override;
+ Response write(Accessor accessor, signed int data, int address) override;
+ Response read(Accessor accessor, int address) override;
};
#endif /* CACHE_H_INCLUDED */