diff options
author | bd <bdunahu@operationnull.com> | 2025-04-21 11:26:35 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-21 11:26:35 -0400 |
commit | e5a4812b685960cdd562bbaf2406c4ce03dceeb0 (patch) | |
tree | 18dea730b977699bae230b1c331b81430d687aaf | |
parent | 58cd897efb57618cfb74641ba238158608ca502a (diff) | |
parent | c9ebd556a633a6091f28166a95e110f052461edc (diff) |
Merge remote-tracking branch 'origin/master' into bdunahu
-rw-r--r-- | inc/cache.h | 1 | ||||
-rw-r--r-- | src/cache.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/inc/cache.h b/inc/cache.h index c9f7f66..b55b30c 100644 --- a/inc/cache.h +++ b/inc/cache.h @@ -61,6 +61,7 @@ nn * Constructor. int write_line(void *, std::array<signed int, LINE_SIZE>, int) override; int read_line(void *, int, std::array<signed int, LINE_SIZE> &) override; int read_word(void *, int, signed int &) override; + unsigned int get_size(); private: int process( diff --git a/src/cache.cc b/src/cache.cc index 90bffd6..c8879b5 100644 --- a/src/cache.cc +++ b/src/cache.cc @@ -41,6 +41,9 @@ Cache::~Cache() delete this->data; } +unsigned int +Cache::get_size() { return this->size; } + int Cache::write_word(void *id, signed int data, int address) { |