clear out instr_fault when exception is thrown
[soc.git] / src / soc / fu / ldst / loadstore.py
index 5ea8969daf9235ee714ca01ad9ecab176c71c36d..8ad751e7ec8714078f22aff4abe28526c67c6ad2 100644 (file)
@@ -303,6 +303,8 @@ class LoadStore1(PortInterfaceBase):
                     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)
+                    # exception thrown, clear out instruction fault state
+                    sync += self.r_instr_fault.eq(0)
 
             with m.Case(State.TLBIE_WAIT):
                 pass