aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/core.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index 5ce0c70..94cccdf 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -330,9 +330,12 @@ void CorePipelined::step() {
if (!stall) {
dt_f = fetch();
handle_pc(dt_d);
- } else
+ } else {
+ // Run fetch stage on empty
+ fetch();
// clear decode latch (insert nope to execute stage)
dtDecodeInit(dt_d);
+ }
}
void CorePipelined::reset() {