misc: Rename Enums namespace as enums
As part of recent decisions regarding namespace naming conventions, all namespaces will be changed to snake case. ::Enums became ::enums. Change-Id: I39b5fb48817ad16abbac92f6254284b37fc90c40 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45420 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
06fb0753fe
commit
4dd099ba3d
2
src/mem/cache/base.cc
vendored
2
src/mem/cache/base.cc
vendored
@@ -1401,7 +1401,7 @@ void
|
||||
BaseCache::maintainClusivity(bool from_cache, CacheBlk *blk)
|
||||
{
|
||||
if (from_cache && blk && blk->isValid() &&
|
||||
!blk->isSet(CacheBlk::DirtyBit) && clusivity == Enums::mostly_excl) {
|
||||
!blk->isSet(CacheBlk::DirtyBit) && clusivity == enums::mostly_excl) {
|
||||
// if we have responded to a cache, and our block is still
|
||||
// valid, but not dirty, and this cache is mostly exclusive
|
||||
// with respect to the cache above, drop the block
|
||||
|
||||
4
src/mem/cache/base.hh
vendored
4
src/mem/cache/base.hh
vendored
@@ -437,7 +437,7 @@ class BaseCache : public ClockedObject
|
||||
*/
|
||||
inline bool allocOnFill(MemCmd cmd) const
|
||||
{
|
||||
return clusivity == Enums::mostly_incl ||
|
||||
return clusivity == enums::mostly_incl ||
|
||||
cmd == MemCmd::WriteLineReq ||
|
||||
cmd == MemCmd::ReadReq ||
|
||||
cmd == MemCmd::WriteReq ||
|
||||
@@ -929,7 +929,7 @@ class BaseCache : public ClockedObject
|
||||
* fill into both this cache and the cache above on a miss. Note
|
||||
* that we currently do not support strict clusivity policies.
|
||||
*/
|
||||
const Enums::Clusivity clusivity;
|
||||
const enums::Clusivity clusivity;
|
||||
|
||||
/**
|
||||
* Is this cache read only, for example the instruction cache, or
|
||||
|
||||
2
src/mem/cache/cache.cc
vendored
2
src/mem/cache/cache.cc
vendored
@@ -527,7 +527,7 @@ Cache::createMissPacket(PacketPtr cpu_pkt, CacheBlk *blk,
|
||||
// * this cache is mostly exclusive and will not fill (since
|
||||
// it does not fill it will have to writeback the dirty data
|
||||
// immediately which generates uneccesary writebacks).
|
||||
bool force_clean_rsp = isReadOnly || clusivity == Enums::mostly_excl;
|
||||
bool force_clean_rsp = isReadOnly || clusivity == enums::mostly_excl;
|
||||
cmd = needsWritable ? MemCmd::ReadExReq :
|
||||
(force_clean_rsp ? MemCmd::ReadCleanReq : MemCmd::ReadSharedReq);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user