summaryrefslogtreecommitdiff
path: root/src/cpu/inorder/resource_pool.hh
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2011-06-19 21:43:38 -0400
committerKorey Sewell <ksewell@umich.edu>2011-06-19 21:43:38 -0400
commit22ba1718c4c36b5abd5fdc8ce32792f5dfdd4fc1 (patch)
tree6518123e144dee30a15428df3ad4e5c66051b5a3 /src/cpu/inorder/resource_pool.hh
parente8082a28c8ee36d6e7e1982952fc545224eb33e7 (diff)
downloadgem5-22ba1718c4c36b5abd5fdc8ce32792f5dfdd4fc1.tar.xz
inorder: cleanup events in resource pool
remove events in the resource pool that can be called from the CPU event, since the CPU event is scheduled at the same time at the resource pool event. ---- Also, match the resPool event function names to the cpu event function names ----
Diffstat (limited to 'src/cpu/inorder/resource_pool.hh')
-rw-r--r--src/cpu/inorder/resource_pool.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cpu/inorder/resource_pool.hh b/src/cpu/inorder/resource_pool.hh
index ba3d6fafb..e892d750a 100644
--- a/src/cpu/inorder/resource_pool.hh
+++ b/src/cpu/inorder/resource_pool.hh
@@ -175,13 +175,13 @@ class ResourcePool {
InstSeqNum done_seq_num, ThreadID tid);
/** Activate Thread in all resources */
- void activateAll(ThreadID tid);
+ void activateThread(ThreadID tid);
/** De-Activate Thread in all resources */
- void deactivateAll(ThreadID tid);
+ void deactivateThread(ThreadID tid);
- /** De-Activate Thread in all resources */
- void suspendAll(ThreadID tid);
+ /** Suspend Thread in all resources */
+ void suspendThread(ThreadID tid);
/** Broadcast Context Switch Update to all resources */
void updateAfterContextSwitch(DynInstPtr inst, ThreadID tid);
@@ -218,8 +218,11 @@ class ResourcePool {
private:
std::vector<Resource *> resources;
+ /** Resources that interface with memory objects */
std::vector<int> memObjects;
+ /** Resources that need to be updated on an inst. graduation */
+ std::vector<int> gradObjects;
};
#endif //__CPU_INORDER_RESOURCE_HH__