From ea7defbf908595b858dec9a95b327242a8cf3a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 17 Jan 2018 21:58:49 +0100 Subject: Fix Pipelined core not to accept hazard unit configuration --- qtmips_machine/qtmipsmachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtmips_machine/qtmipsmachine.cpp b/qtmips_machine/qtmipsmachine.cpp index 456640a..e96924a 100644 --- a/qtmips_machine/qtmipsmachine.cpp +++ b/qtmips_machine/qtmipsmachine.cpp @@ -15,7 +15,7 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) : QObject(), mcnf(&cc) { mem = new Memory(*mem_program_only); if (cc.pipelined()) - cr = new CorePipelined(regs, mem); + cr = new CorePipelined(regs, mem, cc.hazard_unit()); else cr = new CoreSingle(regs, mem, cc.delay_slot()); -- cgit v1.2.3