not busy if excrption occurs on MMU_LOOKUP in loadstore.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Dec 2021 04:06:53 +0000 (04:06 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Dec 2021 04:06:53 +0000 (04:06 +0000)
src/soc/fu/ldst/loadstore.py

index 8aa67ac1c07936761cb06435fed2762947b39be0..2a09bb2466f3d94931a7defc62135063cdc49096 100644 (file)
@@ -249,7 +249,7 @@ 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 += self.busy.eq(1)
+                comb += self.busy.eq(~exception)
                 with m.If(m_in.done):
                     with m.If(~self.instr_fault):
                         sync += Display("MMU_LOOKUP, done %x -> %x",