From: Luke Kenneth Casson Leighton Date: Thu, 1 Sep 2022 15:47:42 +0000 (+0100) Subject: rename FLAGS to RCOE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aacdcfee3ce28ca78403762f06733501c7e324e6;p=openpower-isa.git rename FLAGS to RCOE --- diff --git a/src/openpower/decoder/power_decoder.py b/src/openpower/decoder/power_decoder.py index d4cafe90..5ef452c6 100644 --- a/src/openpower/decoder/power_decoder.py +++ b/src/openpower/decoder/power_decoder.py @@ -94,7 +94,7 @@ from nmigen.cli import rtlil, verilog from openpower.decoder.power_enums import (Function, Form, MicrOp, In1Sel, In2Sel, In3Sel, OutSel, SVEXTRA, SVEtype, SVPtype, # Simple-V - FLAGS, LdstLen, LDSTMode, CryIn, + RCOE, LdstLen, LDSTMode, CryIn, single_bit_flags, CRInSel, CROutSel, get_signal_name, default_values, insns, asmidx, @@ -140,7 +140,7 @@ power_op_types = {'function_unit': Function, 'sv_cr_out': SVEXTRA, 'ldst_len': LdstLen, 'upd': LDSTMode, - 'rc_sel': FLAGS, + 'rc_sel': RCOE, 'cry_in': CryIn } diff --git a/src/openpower/decoder/power_decoder2.py b/src/openpower/decoder/power_decoder2.py index 5675c27e..cedb3548 100644 --- a/src/openpower/decoder/power_decoder2.py +++ b/src/openpower/decoder/power_decoder2.py @@ -31,7 +31,7 @@ from openpower.decoder.power_enums import (MicrOp, CryIn, Function, CRInSel, CROutSel, LdstLen, In1Sel, In2Sel, In3Sel, OutSel, SPRfull, SPRreduced, - FLAGS, SVP64LDSTmode, LDSTMode, + RCOE, SVP64LDSTmode, LDSTMode, SVEXTRA, SVEtype, SVPtype) from openpower.decoder.decode2execute1 import (Decode2ToExecute1Type, Data, Decode2ToOperand) @@ -529,7 +529,7 @@ class DecodeRC(Elaboratable): def __init__(self, dec): self.dec = dec - self.sel_in = Signal(FLAGS, reset_less=True) + self.sel_in = Signal(RCOE, reset_less=True) self.insn_in = Signal(32, reset_less=True) self.rc_out = Data(1, "rc") @@ -539,13 +539,13 @@ class DecodeRC(Elaboratable): # select Record bit out field with m.Switch(self.sel_in): - with m.Case(FLAGS.RC_OE, FLAGS.RC_ONLY): + with m.Case(RCOE.RC_OE, RCOE.RC_ONLY): comb += self.rc_out.data.eq(self.dec.Rc) comb += self.rc_out.ok.eq(1) - with m.Case(FLAGS.ONE): + with m.Case(RCOE.ONE): comb += self.rc_out.data.eq(1) comb += self.rc_out.ok.eq(1) - with m.Case(FLAGS.NONE): + with m.Case(RCOE.NONE): comb += self.rc_out.data.eq(0) comb += self.rc_out.ok.eq(1) @@ -567,7 +567,7 @@ class DecodeOE(Elaboratable): def __init__(self, dec, op): self.dec = dec self.op = op - self.sel_in = Signal(FLAGS, reset_less=True) + self.sel_in = Signal(RCOE, reset_less=True) self.insn_in = Signal(32, reset_less=True) self.oe_out = Data(1, "oe") @@ -605,7 +605,7 @@ class DecodeOE(Elaboratable): with m.Default(): # select OE bit out field with m.Switch(self.sel_in): - with m.Case(FLAGS.RC_OE): + with m.Case(RCOE.RC_OE): comb += self.oe_out.data.eq(self.dec.OE) comb += self.oe_out.ok.eq(1) diff --git a/src/openpower/decoder/power_enums.py b/src/openpower/decoder/power_enums.py index b1369b82..693a4879 100644 --- a/src/openpower/decoder/power_enums.py +++ b/src/openpower/decoder/power_enums.py @@ -671,7 +671,7 @@ class LDSTMode(Enum): @unique -class FLAGS(Enum): +class RCOE(Enum): NONE = 0 ONE = 1 RC_OE = 2 # includes OE