inorder: overload find-req fn
authorKorey Sewell <ksewell@umich.edu>
Fri, 4 Feb 2011 05:08:21 +0000 (00:08 -0500)
committerKorey Sewell <ksewell@umich.edu>
Fri, 4 Feb 2011 05:08:21 +0000 (00:08 -0500)
no need to have separate function name findSplitRequest, just overload the function

src/cpu/inorder/resources/cache_unit.cc
src/cpu/inorder/resources/cache_unit.hh

index 9f3c9935621702ef64300a01ea9d818c8227ecd9..03f1c1527b467fe980f46277a06b2b195c2fbb2e 100644 (file)
@@ -267,7 +267,7 @@ CacheUnit::findRequest(DynInstPtr inst)
 }
 
 ResReqPtr
-CacheUnit::findSplitRequest(DynInstPtr inst, int idx)
+CacheUnit::findRequest(DynInstPtr inst, int idx)
 {
     map<int, ResReqPtr>::iterator map_it = reqMap.begin();
     map<int, ResReqPtr>::iterator map_end = reqMap.end();
@@ -915,7 +915,7 @@ CacheUnit::processCacheCompletion(PacketPtr pkt)
 
     // Cast to correct request type
     CacheRequest *cache_req = dynamic_cast<CacheReqPtr>(
-        findSplitRequest(cache_pkt->cacheReq->getInst(), cache_pkt->instIdx));
+        findRequest(cache_pkt->cacheReq->getInst(), cache_pkt->instIdx));
 
     if (!cache_req) {
         panic("[tid:%u]: [sn:%i]: Can't find slot for cache access to "
index 69c1dbd9e8afe8316fefb1379416a47c3f0696e3..ece06be835aa60c8417b1e01c1256d83ba6ad6a7 100644 (file)
@@ -124,7 +124,7 @@ class CacheUnit : public Resource
                                 unsigned cmd);
 
     ResReqPtr findRequest(DynInstPtr inst);
-    ResReqPtr findSplitRequest(DynInstPtr inst, int idx);
+    ResReqPtr findRequest(DynInstPtr inst, int idx);
 
     void requestAgain(DynInstPtr inst, bool &try_request);