spelling error, move perm_ok to local
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 16 Aug 2020 09:51:32 +0000 (10:51 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 16 Aug 2020 09:51:32 +0000 (10:51 +0100)
src/soc/experiment/mmu.py

index f2bdc41f9bff9a5e45d811a9fb24b0a2609293b6..28e2675d95d3049e777a26ee5afefa2878ef27eb 100644 (file)
@@ -227,7 +227,6 @@ class MMU(Elaboratable):
         tlb_data = Signal(64)
         nonzero = Signal()
         pgtbl = Signal(64)
-        perm_ok = Signal()
         rc_ok = Signal()
         addr = Signal(64)
 
@@ -395,6 +394,7 @@ class MMU(Elaboratable):
                     with m.If(data[63]):
                         with m.If(data[62]):
                             # check permissions and RC bits
+                            perm_ok = Signal()
                             comb += perm_ok.eq(0)
                             with m.If(r.priv | ~data[3]):
                                 with m.If(~r.iside):
@@ -410,7 +410,7 @@ class MMU(Elaboratable):
                             with m.If(perm_ok & rc_ok):
                                 comb += v.state.eq(State.RADIX_LOAD_TLB)
                             with m.Else():
-                                comb += vl.state.eq(State.RADIX_ERROR)
+                                comb += v.state.eq(State.RADIX_ERROR)
                                 comb += v.perm_err.eq(~perm_ok)
                                 # permission error takes precedence
                                 # over RC error