From 27a58c86ce494588a12023a12b027b7f44bb35fc Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sun, 15 Jan 2023 14:02:54 -0800 Subject: Stall decode after an instruction with stores until the stores are done. --- isa/decode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'isa/decode.cpp') diff --git a/isa/decode.cpp b/isa/decode.cpp index f0cdca8..abcb3e3 100644 --- a/isa/decode.cpp +++ b/isa/decode.cpp @@ -88,15 +88,15 @@ instruction_context decode(std::uint_fast32_t flags, unsigned int pc, unsigned i #pragma GCC diagnostic pop instruction_context inst; - inst.bits = bits; - inst.next_pc = (pc & ~07777) | ((pc + 1) & 07777); - if (interrupt) { inst.bits = bits = 04000; assert(df == 0); assert(ifb == 0); inst.next_pc = pc; pc = 0; + } else { + inst.bits = bits; + inst.next_pc = (pc & ~07777) | ((pc + 1) & 07777); } switch (bits >> 9) { -- cgit v1.2.3