sync missing in dcache
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Apr 2021 15:22:41 +0000 (16:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 22 Apr 2021 15:22:41 +0000 (16:22 +0100)
src/soc/experiment/dcache.py

index e54adf34a5a1a1c9bed3dd9868d015b15d8f1211..61fd107193cf67e52dffd31dd31db4c15f1d7423 100644 (file)
@@ -1169,7 +1169,7 @@ class DCache(Elaboratable):
                 sync += r1.cache_paradox.eq(0)
 
         with m.If(req_op == Op.OP_STCX_FAIL):
-            r1.stcx_fail.eq(1)
+            sync += r1.stcx_fail.eq(1)
         with m.Else():
             sync += r1.stcx_fail.eq(0)