Since the tag classes are subclasses of SimObject, they inherit an
init function which does generic initialization at simulation startup
and which doesn't take any parameters. A new function was added which
does take a parameter, and which is just for doing tag specific
initialization as triggered by the base cache. These two names clashed,
and clang complained that the tag local name was hiding the SimObject
name (which it was).
Change-Id: I399775aceaf8f1a8e2646d434facef22e6d3e7d0
Reviewed-on: https://gem5-review.googlesource.com/c/13875
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
tempBlock = new TempCacheBlk(blkSize);
- tags->init(this);
+ tags->tagsInit(this);
if (prefetcher)
prefetcher->setCache(this);
}
*
* @param _cache Pointer to parent cache.
*/
- virtual void init(BaseCache *_cache) = 0;
+ virtual void tagsInit(BaseCache *_cache) = 0;
/**
* Register local statistics.
}
void
-BaseSetAssoc::init(BaseCache* cache)
+BaseSetAssoc::tagsInit(BaseCache* cache)
{
// Set parent cache
setCache(cache);
*
* @param _cache Pointer to parent cache.
*/
- void init(BaseCache *_cache) override;
+ void tagsInit(BaseCache *_cache) override;
/**
* This function updates the tags when a block is invalidated. It also
}
void
-FALRU::init(BaseCache* cache)
+FALRU::tagsInit(BaseCache* cache)
{
// Set parent cache
setCache(cache);
*
* @param _cache Pointer to parent cache.
*/
- void init(BaseCache *_cache) override;
+ void tagsInit(BaseCache *_cache) override;
/**
* Register the stats for this object.
}
void
-SectorTags::init(BaseCache* cache)
+SectorTags::tagsInit(BaseCache* cache)
{
// Set parent cache
setCache(cache);
*
* @param _cache Pointer to parent cache.
*/
- void init(BaseCache *_cache) override;
+ void tagsInit(BaseCache *_cache) override;
/**
* This function updates the tags when a block is invalidated but does