From 0f8345395e877d63a9d4c7279380670a9fdcda6d Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Mon, 29 Aug 2022 19:54:00 +0300 Subject: [PATCH] power_insn: convert PO field name to lower case --- src/openpower/decoder/isa/caller.py | 4 ++-- src/openpower/decoder/power_insn.py | 4 ++-- src/openpower/sv/trans/svp64.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openpower/decoder/isa/caller.py b/src/openpower/decoder/isa/caller.py index cf85d428..4c8c0c07 100644 --- a/src/openpower/decoder/isa/caller.py +++ b/src/openpower/decoder/isa/caller.py @@ -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) diff --git a/src/openpower/decoder/power_insn.py b/src/openpower/decoder/power_insn.py index 53bf32d6..72253cc0 100644 --- a/src/openpower/decoder/power_insn.py +++ b/src/openpower/decoder/power_insn.py @@ -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"): diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index 5e4095cd..1bb8e697 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -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 -- 2.30.2