diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-17 23:49:06 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-17 23:49:43 +0100 |
commit | 88308b2d65dd2049f260c212615ce066f120a980 (patch) | |
tree | 858d3a02703c7e699b6a1570ce5908b3e07bd8d4 /qtmips_machine | |
parent | a43eedc0bf596933b6d1ed9d291d867e308a3eec (diff) | |
download | qtmips-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.cpp | 2 |
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); } } |