add svindex XO field 101001
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jun 2022 21:20:47 +0000 (22:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 Jun 2022 21:20:47 +0000 (22:20 +0100)
src/openpower/sv/trans/svp64.py

index 593b34d148b9209a20a0a26d6aac0718ebc6a111..dca5e416dbc71dfda6a52c8ee931d1781c8dd16d 100644 (file)
@@ -323,6 +323,7 @@ class SVP64Asm:
             insn |= fields[4] << (31-23)     # yx   , bit 23
             insn |= fields[5] << (31-24)     # mm   , bit 24
             insn |= fields[6] << (31-25)     # sk   , bit 25
+            insn |= 0b101001 << (31-31)  # XO       , bits 26..31
             log("svindex", bin(insn))
             yield ".long 0x%x" % insn
             return