power_insn: convert PO field name to lower case
authorDmitry Selyutin <ghostmansd@gmail.com>
Mon, 29 Aug 2022 16:54:00 +0000 (19:54 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 30 Aug 2022 06:57:50 +0000 (09:57 +0300)
src/openpower/decoder/isa/caller.py
src/openpower/decoder/power_insn.py
src/openpower/sv/trans/svp64.py

index cf85d428b91881855a449f6bc1958406589140f5..4c8c0c070c5e1896bdbc365a1eda0f7b8d4a9b5a 100644 (file)
@@ -950,8 +950,8 @@ class ISACaller(ISACallerHelper, ISAFPHelpers):
         opcode = yield self.dec2.dec.opcode_in
         opcode = SelectableInt(value=opcode, bits=32)
         pfx = SVP64Instruction.Prefix(opcode)
-        log("prefix test: opcode:", pfx.PO, bin(pfx.PO), pfx.id)
-        self.is_svp64_mode = bool((pfx.PO == 0b000001) and (pfx.id == 0b11))
+        log("prefix test: opcode:", pfx.po, bin(pfx.po), pfx.id)
+        self.is_svp64_mode = bool((pfx.po == 0b000001) and (pfx.id == 0b11))
         self.pc.update_nia(self.is_svp64_mode)
         # set SVP64 decode
         yield self.dec2.is_svp64_mode.eq(self.is_svp64_mode)
index 53bf32d621777230fcfb162f93b289fe90f24f81..72253cc09dc245bd98f3c1c0cfe6293ee8171241 100644 (file)
@@ -569,7 +569,7 @@ class Instruction(_Mapping):
 
 class WordInstruction(Instruction):
     _: _Field = range(0, 32)
-    PO: _Field = range(0, 6)
+    po: _Field = range(0, 6)
 
     @classmethod
     def integer(cls, value, byteorder="little"):
@@ -593,7 +593,7 @@ class PrefixedInstruction(Instruction):
     _: _Field = range(64)
     prefix: Prefix
     suffix: Suffix
-    PO: Suffix.PO
+    po: Suffix.po
 
     @classmethod
     def integer(cls, value, byteorder="little"):
index 5e4095cd88253dc6207839f44a06dc094dc6a21a..1bb8e697db2356b1b98a298d610b5ac5bb953fb7 100644 (file)
@@ -1241,7 +1241,7 @@ class SVP64Asm:
         log()
 
         # update prefix PO and ID (aka PID)
-        svp64_prefix.PO = 0x1
+        svp64_prefix.po = 0x1
         svp64_prefix.id = 0b11
 
         # fiinally yield the svp64 prefix and the thingy.  v3.0b opcode