aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/qtmipsmachine.cpp
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-03 17:52:45 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-03 17:52:45 +0100
commit08d7e3dabd81e9d6e4f73aa5889a1d709242177c (patch)
tree1ad8277b3be1534f3d2a451e6c4fe659f9d9cb24 /qtmips_machine/qtmipsmachine.cpp
parent4a40dddda4d3839814be2f00fb9a62f95b1b3f21 (diff)
downloadqtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.tar.gz
qtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.tar.bz2
qtmips-08d7e3dabd81e9d6e4f73aa5889a1d709242177c.zip
Allow delay slot disable for non-pipelined core
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 6593dd0..3d79c7c 100644
--- a/qtmips_machine/qtmipsmachine.cpp
+++ b/qtmips_machine/qtmipsmachine.cpp
@@ -33,7 +33,7 @@ QtMipsMachine::QtMipsMachine(const MachineConfig &cc) {
if (cc.pipelined())
cr = new CorePipelined(regs, coremem);
else
- cr = new CoreSingle(regs, coremem);
+ cr = new CoreSingle(regs, coremem, cc.delay_slot());
run_speed = 1;
run_t = new QTimer(this);