diff options
author | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:30:35 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2010-01-31 18:30:35 -0500 |
commit | 6939482c49b489ad8811364ec52ad10ae421fb44 (patch) | |
tree | 6eb023749052c773df869d189965a3d8ee07070a /src/cpu/inorder/resource.cc | |
parent | ea8909925fd0e7a33feabc9e17f83b85cd7c6039 (diff) | |
download | gem5-6939482c49b489ad8811364ec52ad10ae421fb44.tar.xz |
inorder: implement split loads
Diffstat (limited to 'src/cpu/inorder/resource.cc')
-rw-r--r-- | src/cpu/inorder/resource.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/cpu/inorder/resource.cc b/src/cpu/inorder/resource.cc index e5fd4f70e..dcf5f3117 100644 --- a/src/cpu/inorder/resource.cc +++ b/src/cpu/inorder/resource.cc @@ -262,15 +262,22 @@ Resource::findRequest(DynInstPtr inst) map<int, ResReqPtr>::iterator map_it = reqMap.begin(); map<int, ResReqPtr>::iterator map_end = reqMap.end(); + bool found = false; + ResReqPtr req = NULL; + while (map_it != map_end) { if ((*map_it).second && - (*map_it).second->getInst() == inst) { - return (*map_it).second; + (*map_it).second->getInst() == inst) { + req = (*map_it).second; + //return (*map_it).second; + assert(found == false); + found = true; } map_it++; } - return NULL; + return req; + //return NULL; } void |