]> Joshua Wise's Git repositories - firearm.git/blobdiff - Issue.v
execute: do stuff only if bubble, still incorrect
[firearm.git] / Issue.v
diff --git a/Issue.v b/Issue.v
index 3c8303a475c17e56134d0d206c55d9a8ea784ad7..a6b7109fa7ce65c3e741fdaaaa9a789e0b30d214 100644 (file)
--- a/Issue.v
+++ b/Issue.v
@@ -290,8 +290,16 @@ module Issue(
        begin
                if (waiting)
                        $display("ISSUE: Stalling instruction %08x because %d/%d", insn, waiting_cpsr, waiting_regs);
-       
-               if (!stall)
+
+               if(flush)
+               begin
+                       cpsr_inflight[0] = 1'b0;
+                       cpsr_inflight[1] = 1'b0;
+                       regs_inflight[0] = 16'b0;
+                       regs_inflight[1] = 16'b0;
+                       outbubble <= 1'b1;
+               end
+               else if (!stall)
                begin
                        cpsr_inflight[0] <= cpsr_inflight[1];   /* I'm not sure how well selects work with arrays, and that seems like a dumb thing to get anusulated by. */
                        cpsr_inflight[1] <= (waiting || inbubble || !condition_met) ? 0 : def_cpsr;
This page took 0.02374 seconds and 4 git commands to generate.