From: Gabe Black Date: Sun, 30 Aug 2020 09:48:37 +0000 (-0700) Subject: x86,cpu: Get rid of the unused IsCC StaticInst flag. X-Git-Tag: develop-gem5-snapshot~754 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=48f7ddc421d7bc2ef95a846944990a06a0bd25ee;p=gem5.git x86,cpu: Get rid of the unused IsCC StaticInst flag. This flag was set when some registers were used in x86, but never actually checked by anything. Change-Id: Id0f9847aeca5017455929ab4bbf28210288a3553 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33741 Reviewed-by: Jason Lowe-Power Tested-by: kokoro Maintainer: Gabe Black --- diff --git a/src/arch/x86/isa/operands.isa b/src/arch/x86/isa/operands.isa index 2cd92ddb6..64c83c65c 100644 --- a/src/arch/x86/isa/operands.isa +++ b/src/arch/x86/isa/operands.isa @@ -64,7 +64,7 @@ let {{ def floatReg(idx, id): return ('FloatReg', 'df', idx, 'IsFloating', id) def ccReg(idx, id): - return ('CCReg', 'uqw', idx, 'IsCC', id) + return ('CCReg', 'uqw', idx, None, id) def controlReg(idx, id, ctype = 'uqw'): return ('ControlReg', ctype, idx, (None, None, ['IsSerializeAfter', @@ -147,20 +147,20 @@ def operands {{ # would be retained, the write predicate checks if any of the bits # are being written. - 'PredccFlagBits': ('CCReg', 'uqw', '(CCREG_ZAPS)', 'IsCC', + 'PredccFlagBits': ('CCReg', 'uqw', '(CCREG_ZAPS)', None, 60, None, None, '''(((ext & (PFBit | AFBit | ZFBit | SFBit )) != (PFBit | AFBit | ZFBit | SFBit )) && ((ext & (PFBit | AFBit | ZFBit | SFBit )) != 0))''', '((ext & (PFBit | AFBit | ZFBit | SFBit )) != 0)'), - 'PredcfofBits': ('CCReg', 'uqw', '(CCREG_CFOF)', 'IsCC', + 'PredcfofBits': ('CCReg', 'uqw', '(CCREG_CFOF)', None, 61, None, None, '''(((ext & CFBit) == 0 || (ext & OFBit) == 0) && ((ext & (CFBit | OFBit)) != 0))''', '((ext & (CFBit | OFBit)) != 0)'), - 'PreddfBit': ('CCReg', 'uqw', '(CCREG_DF)', 'IsCC', + 'PreddfBit': ('CCReg', 'uqw', '(CCREG_DF)', None, 62, None, None, '(false)', '((ext & DFBit) != 0)'), - 'PredecfBit': ('CCReg', 'uqw', '(CCREG_ECF)', 'IsCC', + 'PredecfBit': ('CCReg', 'uqw', '(CCREG_ECF)', None, 63, None, None, '(false)', '((ext & ECFBit) != 0)'), - 'PredezfBit': ('CCReg', 'uqw', '(CCREG_EZF)', 'IsCC', + 'PredezfBit': ('CCReg', 'uqw', '(CCREG_EZF)', None, 64, None, None, '(false)', '((ext & EZFBit) != 0)'), # These register should needs to be more protected so that later diff --git a/src/cpu/StaticInstFlags.py b/src/cpu/StaticInstFlags.py index 27ba013ed..316aef4fa 100644 --- a/src/cpu/StaticInstFlags.py +++ b/src/cpu/StaticInstFlags.py @@ -56,7 +56,6 @@ class StaticInstFlags(Enum): 'IsInteger', # References integer regs. 'IsFloating', # References FP regs. - 'IsCC', # References CC regs. 'IsVector', # References Vector regs. 'IsVectorElem', # References Vector reg elems. diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh index 353c0e358..0a871cfc6 100644 --- a/src/cpu/static_inst.hh +++ b/src/cpu/static_inst.hh @@ -170,7 +170,6 @@ class StaticInst : public RefCounted, public StaticInstFlags bool isInteger() const { return flags[IsInteger]; } bool isFloating() const { return flags[IsFloating]; } bool isVector() const { return flags[IsVector]; } - bool isCC() const { return flags[IsCC]; } bool isControl() const { return flags[IsControl]; } bool isCall() const { return flags[IsCall]; }