inorder: overload find-req fn

no need to have separate function name findSplitRequest, just overload the function
This commit is contained in:
Korey Sewell
2011-02-04 00:08:21 -05:00
parent ab3d37d398
commit 56ce8acd41
2 changed files with 3 additions and 3 deletions

View 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 "

View 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);