aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-17 23:49:06 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-17 23:49:43 +0100
commit88308b2d65dd2049f260c212615ce066f120a980 (patch)
tree858d3a02703c7e699b6a1570ce5908b3e07bd8d4 /qtmips_machine
parenta43eedc0bf596933b6d1ed9d291d867e308a3eec (diff)
downloadqtmips-88308b2d65dd2049f260c212615ce066f120a980.tar.gz
qtmips-88308b2d65dd2049f260c212615ce066f120a980.tar.bz2
qtmips-88308b2d65dd2049f260c212615ce066f120a980.zip
Do not update instruction in the decode stage when stalled.
Decode dt_d represents next input to execute stage not state of decode stage at this moment. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine')
-rw-r--r--qtmips_machine/core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp
index 6ef9103..58e1c17 100644
--- a/qtmips_machine/core.cpp
+++ b/qtmips_machine/core.cpp
@@ -744,7 +744,7 @@ void CorePipelined::do_step(bool skip_break) {
fetch(skip_break);
// clear decode latch (insert nope to execute stage)
dtDecodeInit(dt_d);
- emit instruction_decoded(dt_d.inst, dt_d.inst_addr, dt_d.excause);
+ // emit instruction_decoded(dt_d.inst, dt_d.inst_addr, dt_d.excause);
}
}