Get rid of obsolete code, most of it '#if 0'ed anyway.
authorSteve Reinhardt <stever@eecs.umich.edu>
Mon, 20 Oct 2003 00:30:26 +0000 (17:30 -0700)
committerSteve Reinhardt <stever@eecs.umich.edu>
Mon, 20 Oct 2003 00:30:26 +0000 (17:30 -0700)
Mostly vestiges of Dave's long-gone instruction prefetching stuff.

arch/alpha/isa_traits.hh:
    Delete unused extractInstructionPrefetchTarget().
base/inifile.cc:
    Delete '#if 0' code
cpu/base_cpu.hh:
    Delete unused filterThisInstructionPrefetch() function.
cpu/exetrace.hh:
    Delete '#if 0' code (obsolete flags).

--HG--
extra : convert_revision : c8317f56ba0a0e568daa785825ee938584987bed

arch/alpha/isa_traits.hh
base/inifile.cc
cpu/base_cpu.hh
cpu/exetrace.hh

index 6b78722ad4d0d146862cc62aec4171a059503c56..5e2dac9f32a6006657f71fe9f339a48c3b936339 100644 (file)
@@ -168,13 +168,6 @@ class AlphaISA
         ITOUCH_ANNOTE = 0xffffffff,
     };
 
-#if 0
-    static inline Addr
-    extractInstructionPrefetchTarget(const MachInst &IR, Addr PC) {
-        return(0);
-    }
-#endif
-
     static inline bool isCallerSaveIntegerRegister(unsigned int reg) {
         panic("register classification not implemented");
         return (reg >= 1 && reg <= 8 || reg >= 22 && reg <= 25 || reg == 27);
index 92d88c09b48fe40602dae24fdba0d39115ef405c..d5436fba8de40234e74446b350ece91369cea1c1 100644 (file)
@@ -400,16 +400,9 @@ IniFile::printUnreferenced()
             }
         }
         else {
-#if 0
-            if (section->findEntry("unref_entries_ok") == NULL) {
-                bool unrefEntries = section->printUnreferenced(sectionName);
-                unref = unref || unrefEntries;
-            }
-#else
             if (section->printUnreferenced(sectionName)) {
                 unref = true;
             }
-#endif
         }
     }
 
index 5946ced2f1accc6f6c0486e77c94d060b62c1a53..e5d9df6de1a7c35f6b40367431d92839c227d342 100644 (file)
@@ -120,9 +120,6 @@ class BaseCPU : public SimObject
     System *system;
 #endif
 
-    virtual bool filterThisInstructionPrefetch(int thread_number,
-        short asid, Addr prefetchTarget) const { return true; }
-
     /**
      * Return pointer to CPU's branch predictor (NULL if none).
      * @return Branch predictor pointer.
index 8e2ea6221938c749ef7c76b1e250c9607e363798..d05dbe0cd748777bd029814944aefcc02f696a41 100644 (file)
@@ -43,19 +43,6 @@ class BaseCPU;
 
 namespace Trace {
 
-#if 0
-    static const FlagVec ALL =                 ULL(0x1);
-    static const FlagVec FULL =                        ULL(0x2);
-    static const FlagVec SYMBOLS =             ULL(0x4);
-    static const FlagVec EXTENDED =            ULL(0x8);
-    static const FlagVec BRANCH_TAKEN =        ULL(0x10);
-    static const FlagVec BRANCH_NOTTAKEN =     ULL(0x20);
-    static const FlagVec CALLPAL =             ULL(0x40);
-    static const FlagVec SPECULATIVE =         ULL(0x100);
-    static const FlagVec OMIT_COUNT =          ULL(0x200);
-    static const FlagVec INCLUDE_THREAD_NUM =  ULL(0x400);
-#endif
-
 class InstRecord : public Record
 {
   protected: