base: Rename Flag status to enabled

The semantic of "The status of a flag is true/false" may be
confusing. Rename `status` to `enabled`, so that queries
become "Is this flag enabled?".

Change-Id: I8cdd76766d80d65007a9f204abcf71b18211ab42
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38711
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
Daniel R. Carvalho
2020-12-25 17:49:09 -03:00
committed by Daniel Carvalho
parent 3f0cd995bf
commit ccee328334
4 changed files with 89 additions and 87 deletions

View File

@@ -137,13 +137,13 @@ CompoundFlag::disable()
}
bool
CompoundFlag::status() const
CompoundFlag::enabled() const
{
if (_kids.empty())
return false;
for (auto& k : _kids) {
if (!k->status())
if (!k->enabled())
return false;
}
@@ -188,7 +188,7 @@ dumpDebugFlags()
FlagsMap::iterator end = allFlags().end();
for (; i != end; ++i) {
SimpleFlag *f = dynamic_cast<SimpleFlag *>(i->second);
if (f && f->status())
if (f && f->enabled())
cprintf("%s\n", f->name());
}
}