summaryrefslogtreecommitdiff
path: root/tests/controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controller.cc')
-rw-r--r--tests/controller.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/controller.cc b/tests/controller.cc
index a1b8123..a2f8e7d 100644
--- a/tests/controller.cc
+++ b/tests/controller.cc
@@ -1,6 +1,11 @@
#include "controller.h"
#include "cache.h"
#include "dram.h"
+#include "ex.h"
+#include "id.h"
+#include "if.h"
+#include "mm.h"
+#include "wb.h"
#include <algorithm>
#include <catch2/catch_test_macros.hpp>
@@ -10,7 +15,14 @@ class ControllerPipeFixture
ControllerPipeFixture()
{
this->c = new Cache(new Dram(3), 1);
- this->ct = new Controller(this->c, true);
+
+ IF *f = new IF(nullptr);
+ ID *d = new ID(f);
+ EX *e = new EX(d);
+ MM *m = new MM(e);
+ WB *w = new WB(m);
+
+ this->ct = new Controller(w, this->c, true);
}
~ControllerPipeFixture()
{