PerfectCacheMemory: Add return statements to two functions.
Two functions in src/mem/ruby/system/PerfectCacheMemory.hh, tryCacheAccess() and cacheProbe(), end with calls to panic(). Both of these functions have return type other than void. Any file that includes this header file fails to compile because of the missing return statement. This patch adds dummy values so as to avoid the compiler warnings.
This commit is contained in:
parent
58fa2857e1
commit
04f5bb34ce
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,7 @@ PerfectCacheMemory<ENTRY>::tryCacheAccess(const CacheMsg& msg,
|
||||||
bool& block_stc, ENTRY*& entry)
|
bool& block_stc, ENTRY*& entry)
|
||||||
{
|
{
|
||||||
panic("not implemented");
|
panic("not implemented");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tests to see if an address is present in the cache
|
// tests to see if an address is present in the cache
|
||||||
|
@ -167,6 +168,7 @@ inline Address
|
||||||
PerfectCacheMemory<ENTRY>::cacheProbe(const Address& newAddress) const
|
PerfectCacheMemory<ENTRY>::cacheProbe(const Address& newAddress) const
|
||||||
{
|
{
|
||||||
panic("cacheProbe called in perfect cache");
|
panic("cacheProbe called in perfect cache");
|
||||||
|
return newAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
// looks an address up in the cache
|
// looks an address up in the cache
|
||||||
|
|
Loading…
Reference in a new issue