aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-17 21:58:49 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-17 21:58:49 +0100
commitea7defbf908595b858dec9a95b327242a8cf3a76 (patch)
tree0a2c77fedb699f3152c185eb8b1a245902e7ccf9 /qtmips_machine/qtmipsmachine.cpp
parent7fc6f55f75cec552cfe5e9a9eac6a07511ec0e11 (diff)
downloadqtmips-ea7defbf908595b858dec9a95b327242a8cf3a76.tar.gz
qtmips-ea7defbf908595b858dec9a95b327242a8cf3a76.tar.bz2
qtmips-ea7defbf908595b858dec9a95b327242a8cf3a76.zip
Fix Pipelined core not to accept hazard unit configuration
Diffstat (limited to 'qtmips_machine/qtmipsmachine.cpp')
-rw-r--r--qtmips_machine/qtmipsmachine.cpp2
1 files changed, 1 insertions, 1 deletions
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());