diff options
author | bd <bdunaisky@umass.edu> | 2025-04-18 12:16:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-18 12:16:10 +0000 |
commit | c9ebd556a633a6091f28166a95e110f052461edc (patch) | |
tree | 2264d837c498729b9c18196930791bdb70fd8f32 | |
parent | 3072eead6fa128398a3cbc0d874473385aef6878 (diff) | |
parent | 5444319d5bba38244a09752e6491df2e9f4d1c61 (diff) |
Merge pull request #5 from bdunahu/dev-sid
initialization from GUI
-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 8075d1a..f393290 100644 --- a/inc/cache.h +++ b/inc/cache.h @@ -44,6 +44,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 c934a26..4e36a6d 100644 --- a/src/cache.cc +++ b/src/cache.cc @@ -24,6 +24,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) { |