These methods relate to the Flags interface.
More...
These methods relate to the Flags interface.
◆ allSet()
Verifies whether no bits matching the given mask are set.
- Parameters
-
| mask | The mask containing the bits to verify. |
- Returns
- True if matching bits are set; false otherwise.
Definition at line 91 of file flags.hh.
Referenced by TEST().
◆ clear() [1/2]
◆ clear() [2/2]
Clear all flag's bits matching the given mask.
- Parameters
-
| mask | The mask containing the bits to be cleared. |
Definition at line 109 of file flags.hh.
◆ Flags()
Initialize flags with a given value.
If no value is provided, the flag bits are initialized cleared.
- Parameters
-
| flags | The value to initialize the flags with. |
Definition at line 66 of file flags.hh.
◆ isSet()
◆ noneSet()
◆ operator const Type()
◆ operator=()
◆ replace()
Replace the contents of the bits matching the mask with the corresponding bits in the provided flags.
This is equivalent to: flags.clear(mask); flags.set(flags & mask);
- Parameters
-
| flags | Flags to extract new bits from. |
| mask | Mask used to determine which bits are replaced. |
Definition at line 141 of file flags.hh.
Referenced by TEST().
◆ set() [1/2]
Set all flag's bits matching the given mask.
- Parameters
-
| mask | The mask containing the bits to be set. |
Definition at line 116 of file flags.hh.
Referenced by gem5::ArmISA::TableWalker::doL1Descriptor(), gem5::ArmISA::TableWalker::doLongDescriptor(), gem5::GarnetSyntheticTraffic::generatePkt(), gem5::Check::initiateCheck(), gem5::Check::initiatePrefetch(), gem5::initMemReqScalarHelper(), gem5::ArmISA::TableWalker::processWalk(), gem5::ArmISA::TableWalker::processWalkAArch64(), gem5::ArmISA::TableWalker::processWalkLPAE(), gem5::statistics::InfoAccess::setInit(), gem5::X86ISA::Walker::WalkerState::setupWalk(), gem5::VegaISA::Walker::WalkerState::stepWalk(), gem5::X86ISA::Walker::WalkerState::stepWalk(), TEST(), TEST(), TEST(), TEST(), TEST(), and gem5::MemTest::tick().
◆ set() [2/2]
Conditionally set or clear some bits of the flag, given a mask.
- Parameters
-
| mask | The mask containing the bits to be modified. |
| condition | If true, set masked bits; otherwise, clear them. |
Definition at line 125 of file flags.hh.