mips,cpu: Get rid of the IsCondDelaySlot StaticInst flag.
authorGabe Black <gabeblack@google.com>
Sun, 30 Aug 2020 08:29:18 +0000 (01:29 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 15 Sep 2020 08:02:47 +0000 (08:02 +0000)
This is set by MIPS in a few places, but not actually used by anything.

Change-Id: Iaf3b29b2c14bb1de3ffd6a0035f12f238591cb60
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33736
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
src/arch/mips/isa/formats/branch.isa
src/cpu/StaticInstFlags.py
src/cpu/base_dyn_inst.hh
src/cpu/static_inst.hh

index 4975a132142a338824d3efc93fdb0045ad5d315b..7c2b27cc148f9e32d7e9b3b2cd47852b34137daa 100644 (file)
@@ -241,7 +241,6 @@ def format Branch(code, *opt_flags) {{
             code += 'R31 = NNPC;\n'
         elif x == 'Likely':
             not_taken_code = 'NNPC = NPC; NPC = PC;'
-            inst_flags += ('IsCondDelaySlot', )
         else:
             inst_flags += (x, )
 
@@ -280,7 +279,6 @@ def format DspBranch(code, *opt_flags) {{
             code += 'R32 = NNPC;'
         elif x == 'Likely':
             not_taken_code = 'NNPC = NPC, NPC = PC;'
-            inst_flags += ('IsCondDelaySlot', )
         else:
             inst_flags += (x, )
 
index 1c2b63a2b5ee33eb07f1f7ba3563a844177a3538..5b8507b2892d33d6566f0203549f01e7844f76d5 100644 (file)
@@ -78,8 +78,6 @@ class StaticInstFlags(Enum):
         'IsCall',           # Subroutine call.
         'IsReturn',         # Subroutine return.
 
-        'IsCondDelaySlot',  # Conditional Delay-Slot Instruction
-
         'IsThreadSync',     # Thread synchronization operation.
 
         'IsSerializing',    # Serializes pipeline: won't execute until all
index a6c08cc1f115e86a72c9a8677df872fa56a549d8..60ca592cca83efeaab5c2c3d1d4029d10dc983d4 100644 (file)
@@ -541,7 +541,6 @@ class BaseDynInst : public ExecContext, public RefCounted
     bool isIndirectCtrl() const { return staticInst->isIndirectCtrl(); }
     bool isCondCtrl()     const { return staticInst->isCondCtrl(); }
     bool isUncondCtrl()   const { return staticInst->isUncondCtrl(); }
-    bool isCondDelaySlot() const { return staticInst->isCondDelaySlot(); }
     bool isThreadSync()   const { return staticInst->isThreadSync(); }
     bool isSerializing()  const { return staticInst->isSerializing(); }
     bool
index 146be8c72d0a7859c5ebcdbce12f90245537c11d..1a0e42c36814835c2daeafcd42395d7a81023648 100644 (file)
@@ -179,7 +179,6 @@ class StaticInst : public RefCounted, public StaticInstFlags
     bool isIndirectCtrl() const { return flags[IsIndirectControl]; }
     bool isCondCtrl()     const { return flags[IsCondControl]; }
     bool isUncondCtrl()   const { return flags[IsUncondControl]; }
-    bool isCondDelaySlot() const { return flags[IsCondDelaySlot]; }
 
     bool isThreadSync()   const { return flags[IsThreadSync]; }
     bool isSerializing()  const { return flags[IsSerializing] ||