diff options
author | bd <bdunahu@operationnull.com> | 2025-03-20 19:28:57 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-20 19:28:57 -0400 |
commit | 5845ad71d78d310322046906ee4c8e91d007d57e (patch) | |
tree | ffd8e0bd2b112180251804a096f601f745f9af1b /src | |
parent | f1b49cc04ea776a1c47ef05435361a7dbb6ccc34 (diff) |
Rewrite all Dram tests to use Fixture
Diffstat (limited to 'src')
-rw-r--r-- | src/cli/cli.cc | 2 | ||||
-rw-r--r-- | src/storage/dram.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/cli.cc b/src/cli/cli.cc index 41ac57c..e25b316 100644 --- a/src/cli/cli.cc +++ b/src/cli/cli.cc @@ -211,7 +211,7 @@ void Cli::initialize() if (this->cache != nullptr) delete this->cache; - Dram *d = new Dram(MEM_LINES, MEM_DELAY); + Dram *d = new Dram(MEM_DELAY); this->cache = new Cache(d, L1_CACHE_DELAY); this->cycle = 1; } diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 56eec47..20db47e 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -8,10 +8,10 @@ #include <iterator> #include <utils.h> -Dram::Dram(int lines, int delay) +Dram::Dram(int delay) { this->data = new std::vector<std::array<signed int, LINE_SIZE>>; - this->data->resize(lines); + this->data->resize(MEM_LINES); this->delay = delay; this->is_waiting = false; this->lower = nullptr; |