base: Add XOR and modulo operator to ChannelAddr
[gem5.git] / src / base / flags.hh
index 170abc544a0dd7c1ff4584c2e9fee3da73d65c5b..0544380f1de60662e57eef6c815af18671d4df26 100644 (file)
@@ -71,13 +71,6 @@ class Flags
         return *this;
     }
 
-    /**
-     * Verifies whether any bit in the flags is set.
-     *
-     * @return True if any flag bit is set; false otherwise.
-     */
-    bool isSet() const { return _flags; }
-
     /**
      * Verifies whether any bit matching the given mask is set.
      *
@@ -86,13 +79,6 @@ class Flags
      */
     bool isSet(Type mask) const { return (_flags & mask); }
 
-    /**
-     * Verifies whether all bits in the flags are set.
-     *
-     * @return True if all flag bits are set; false otherwise.
-     */
-    bool allSet() const { return !(~_flags); }
-
     /**
      * Verifies whether no bits matching the given mask are set.
      *
@@ -101,13 +87,6 @@ class Flags
      */
     bool allSet(Type mask) const { return (_flags & mask) == mask; }
 
-    /**
-     * Verifies whether no bits in the flags are set.
-     *
-     * @return True if all flag bits are cleared; false otherwise.
-     */
-    bool noneSet() const { return _flags == 0; }
-
     /**
      * Verifies whether no bits matching the given mask are set.
      *
@@ -156,7 +135,7 @@ class Flags
      * @param mask Mask used to determine which bits are replaced.
      */
     void
-    update(Type flags, Type mask)
+    replace(Type flags, Type mask)
     {
         _flags = (_flags & ~mask) | (flags & mask);
     }