summaryrefslogtreecommitdiff
path: root/tests/id.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/id.cc')
-rw-r--r--tests/id.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/id.cc b/tests/id.cc
index d9c1701..f460505 100644
--- a/tests/id.cc
+++ b/tests/id.cc
@@ -14,7 +14,7 @@ class IDFixture
{
Dram *dr;
- dr = new Dram(3);
+ this->dr = new Dram(3);
this->c = new Cache(dr, 1);
IF *f = new IF(nullptr);
this->d = new ID(f);
@@ -65,6 +65,8 @@ class IDFixture
t = (t << TYPE_SIZE) + type;
return t;
}
+
+ Dram *dr;
Cache *c;
ID *d;
Controller *ct;