diff options
Diffstat (limited to 'tests/id.cc')
-rw-r--r-- | tests/id.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/id.cc b/tests/id.cc index d9c1701..65cc16a 100644 --- a/tests/id.cc +++ b/tests/id.cc @@ -12,10 +12,8 @@ class IDFixture public: IDFixture() { - Dram *dr; - - dr = new Dram(3); - this->c = new Cache(dr, 1); + this->dr = new Dram(3); + 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); @@ -65,6 +63,8 @@ class IDFixture t = (t << TYPE_SIZE) + type; return t; } + + Dram *dr; Cache *c; ID *d; Controller *ct; |