diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-03-30 14:02:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-30 14:02:23 -0400 |
commit | eedf9686eb60f2008e7766cc9a5d3e037b9dae64 (patch) | |
tree | 0cfa9009fe483b72940727f3b5a4236f779fe6e7 /tests/id.cc | |
parent | d20623d031cf909d8892c2db38cf2e2e02bc6a9b (diff) | |
parent | 8e56373a5436852fe9c7934e03d7b57493625003 (diff) |
Merge pull request #40 from bdunahu/bdunahu
Minor simplification to API between pipeline components
-- Fixed memory leaks
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; |