From 88308b2d65dd2049f260c212615ce066f120a980 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Sun, 17 Feb 2019 23:49:06 +0100 Subject: 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 --- qtmips_machine/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_machine') 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); } } -- cgit v1.2.3