summaryrefslogtreecommitdiff
path: root/src/mem/ruby/system/PerfectCacheMemory.hh
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2010-12-23 13:36:18 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2010-12-23 13:36:18 -0600
commit04f5bb34ce0475a3fee8e3c104413f79668e0ab6 (patch)
treee205bf5ed07febaf5a4ea1fd8f32251201207d99 /src/mem/ruby/system/PerfectCacheMemory.hh
parent58fa2857e123a44b1633628b898847773153c047 (diff)
downloadgem5-04f5bb34ce0475a3fee8e3c104413f79668e0ab6.tar.xz
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.
Diffstat (limited to 'src/mem/ruby/system/PerfectCacheMemory.hh')
-rw-r--r--src/mem/ruby/system/PerfectCacheMemory.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mem/ruby/system/PerfectCacheMemory.hh b/src/mem/ruby/system/PerfectCacheMemory.hh
index 4b81cc790..b04a64717 100644
--- a/src/mem/ruby/system/PerfectCacheMemory.hh
+++ b/src/mem/ruby/system/PerfectCacheMemory.hh
@@ -124,6 +124,7 @@ PerfectCacheMemory<ENTRY>::tryCacheAccess(const CacheMsg& msg,
bool& block_stc, ENTRY*& entry)
{
panic("not implemented");
+ return true;
}
// tests to see if an address is present in the cache
@@ -167,6 +168,7 @@ inline Address
PerfectCacheMemory<ENTRY>::cacheProbe(const Address& newAddress) const
{
panic("cacheProbe called in perfect cache");
+ return newAddress;
}
// looks an address up in the cache