From: Luke Kenneth Casson Leighton Date: Fri, 14 May 2021 12:04:17 +0000 (+0100) Subject: clear out request data on return to idle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81cc035ce036f27e4caa409cb8b799e2e00e0f6a;p=soc.git clear out request data on return to idle --- diff --git a/src/soc/fu/ldst/loadstore.py b/src/soc/fu/ldst/loadstore.py index e20a7796..d699ffea 100644 --- a/src/soc/fu/ldst/loadstore.py +++ b/src/soc/fu/ldst/loadstore.py @@ -207,6 +207,7 @@ class LoadStore1(PortInterfaceBase): with m.If(d_in.cache_paradox): comb += exception.eq(1) sync += self.state.eq(State.IDLE) + sync += ldst_r.eq(0) sync += self.dsisr[63 - 38].eq(~self.load) # XXX there is no architected bit for this # (probably should be a machine check in fact) @@ -223,6 +224,7 @@ class LoadStore1(PortInterfaceBase): with m.If(self.done): sync += Display("ACK_WAIT, done %x", self.addr) sync += self.state.eq(State.IDLE) + sync += ldst_r.eq(0) with m.If(self.load): m.d.comb += self.load_data.eq(d_in.data) @@ -238,6 +240,7 @@ class LoadStore1(PortInterfaceBase): # installed a TLB entry, if not exception raised m.d.comb += self.d_out.valid.eq(~exception) sync += self.state.eq(State.ACK_WAIT) + sync += ldst_r.eq(0) with m.Else(): sync += Display("MMU_LOOKUP, exception %x", self.addr) # instruction lookup fault: store address in DAR