From f2766796ea61afd3a39d39adff34364a114afbc1 Mon Sep 17 00:00:00 2001 From: Tobias Platen Date: Thu, 25 Nov 2021 16:45:10 +0100 Subject: [PATCH] reset state to idle on exception --- src/soc/fu/ldst/loadstore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/ldst/loadstore.py b/src/soc/fu/ldst/loadstore.py index e7ecf272..cadf7925 100644 --- a/src/soc/fu/ldst/loadstore.py +++ b/src/soc/fu/ldst/loadstore.py @@ -240,7 +240,6 @@ class LoadStore1(PortInterfaceBase): # waiting here for the MMU TLB lookup to complete. # either re-try the dcache lookup or throw MMU exception with m.Case(State.MMU_LOOKUP): - comb += Display("MMUTEST: MMU_LOOKUP") comb += self.busy.eq(1) with m.If(m_in.done): with m.If(~self.instr_fault): @@ -257,6 +256,7 @@ class LoadStore1(PortInterfaceBase): comb += exc.happened.eq(1) # reason = MMU_LOOKUP # mark dar as updated ? comb += self.pi.dar_o.eq(self.addr) + sync += self.state.eq(State.IDLE) with m.If(m_in.err): # MMU RADIX exception thrown @@ -267,6 +267,7 @@ class LoadStore1(PortInterfaceBase): sync += self.dsisr[63 - 38].eq(self.load) sync += self.dsisr[63 - 44].eq(m_in.badtree) sync += self.dsisr[63 - 45].eq(m_in.rc_error) + sync += self.state.eq(State.IDLE) with m.Case(State.TLBIE_WAIT): pass -- 2.30.2