From 3183ea5cd878570f4d6cef924369f0a4611a5c99 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Mon, 18 Feb 2019 15:49:34 +0100 Subject: Visualize request to stall and stall in execution phase and exception sources. Signed-off-by: Pavel Pisa --- qtmips_machine/core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qtmips_machine/core.cpp') diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp index 1b030d6..e6f0971 100644 --- a/qtmips_machine/core.cpp +++ b/qtmips_machine/core.cpp @@ -734,11 +734,11 @@ void CorePipelined::do_step(bool skip_break) { printf("PC 0x%08lx\n", (unsigned long)dt_f.inst_addr); #endif - dt_d.stall = stall; emit hu_stall_value(stall); // Now process program counter (loop connections from decode stage) if (!stall) { + dt_d.stall = false; dt_f = fetch(skip_break); if (handle_pc(dt_d)) { dt_f.in_delay_slot = true; @@ -753,6 +753,7 @@ void CorePipelined::do_step(bool skip_break) { fetch(skip_break); // clear decode latch (insert nope to execute stage) dtDecodeInit(dt_d); + dt_d.stall = true; // emit instruction_decoded(dt_d.inst, dt_d.inst_addr, dt_d.excause); } } -- cgit v1.2.3