diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:28:22 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-02-18 14:28:22 -0500 |
commit | c8837290251a300114975861575f59a58990b51a (patch) | |
tree | cd4e7183a33a3a9b724a78baf631dd74a480c9bf /src/cpu/inorder/resource.hh | |
parent | ff48afcf4f3d8cccc899c5840734228a5bebc045 (diff) | |
download | gem5-c8837290251a300114975861575f59a58990b51a.tar.xz |
inorder: add valid bit for resource requests
this will allow us to reuse resource requests within a resource instead
of always dynamically allocating
Diffstat (limited to 'src/cpu/inorder/resource.hh')
-rw-r--r-- | src/cpu/inorder/resource.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cpu/inorder/resource.hh b/src/cpu/inorder/resource.hh index 7f6cb6642..c02fe4014 100644 --- a/src/cpu/inorder/resource.hh +++ b/src/cpu/inorder/resource.hh @@ -299,6 +299,8 @@ class ResourceRequest static int maxReqCount; + friend class Resource; + public: ResourceRequest(Resource *_res, DynInstPtr _inst, int stage_num, int res_idx, int slot_num, unsigned _cmd); @@ -321,7 +323,6 @@ class ResourceRequest ///////////////////////////////////////////// /** Get Resource Index */ int getResIdx() { return resIdx; } - /** Get Slot Number */ int getSlot() { return slotNum; } @@ -378,6 +379,7 @@ class ResourceRequest protected: /** Resource Identification */ + bool valid; ThreadID tid; int stageNum; int resIdx; |