summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-29 23:37:34 -0400
committerbd <bdunahu@operationnull.com>2025-03-29 23:37:34 -0400
commitdf747f79abecc53e7ff696e020caf856746bad0d (patch)
treeb20bbac6282bc67f16d70aab92237216e0338b90 /tests
parent593dc80637bd95e2ca458915295ee2cbea2a4696 (diff)
Fix issue with uninitialized DRAM in ID.cc tests
Diffstat (limited to 'tests')
-rw-r--r--tests/id.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/id.cc b/tests/id.cc
index f460505..65cc16a 100644
--- a/tests/id.cc
+++ b/tests/id.cc
@@ -12,10 +12,8 @@ class IDFixture
public:
IDFixture()
{
- Dram *dr;
-
this->dr = new Dram(3);
- this->c = new Cache(dr, 1);
+ this->c = new Cache(this->dr, 1);
IF *f = new IF(nullptr);
this->d = new ID(f);
this->ct = new Controller(this->d, this->c, true);