comment on op.insn ordering
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jul 2020 12:45:58 +0000 (13:45 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jul 2020 12:45:58 +0000 (13:45 +0100)
src/soc/fu/trap/formal/proof_main_stage.py

index 65723ed6aaac64fe2c6190e0ebe6bf4c8180b4e3..b2e4c498c405cb759925f7ee73d6cb85bcd86b4f 100644 (file)
@@ -212,7 +212,9 @@ class Driver(Elaboratable):
                 # see https://bugs.libre-soc.org/show_bug.cgi?id=421#c24
                 # XXX what is this for?  it is not possible to identify
                 # it because the "direct access to insn bits" provides
-                # absolutely no clue as to its purpose
+                # absolutely no clue as to its purpose.
+                # also: this is likely to be wrong because of PowerISA
+                # field ordering (see V3.0B p4 section 1.3.4)
                 with m.If(field(op.insn, 20, 26) == 1):
                     comb += Assert(msr_o[MSR.HV] == 1)
                 with m.Else():