whoops fix up exception happened if alignment triggers from LoadStore1
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Dec 2021 13:01:26 +0000 (13:01 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Dec 2021 13:01:26 +0000 (13:01 +0000)
set_wr_addr or set_rd_addr

src/soc/fu/ldst/loadstore.py

index 2a3c85ae1a665cb26dd65e8b203c83f6ade125e9..15b2bfbd4141c80d9702f74071460b98b5b35094 100644 (file)
@@ -286,6 +286,9 @@ class LoadStore1(PortInterfaceBase):
             with m.If(self.mmu_set_dar):
                 sync += dar.eq(self.sprval_in)
 
+        # hmmm, alignment occurs in set_rd_addr/set_wr_addr, note exception
+        with m.If(self.align_intr):
+            comb += exc.happened.eq(1)
         # check for updating DAR
         with m.If(exception):
             sync += Display("exception %x", self.addr)