changeset 143fa8eed0e5 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=143fa8eed0e5
description:
inorder: add valid bit for resource requests
this will allow us to reuse resource requests within a resource instead
of always dynamically allocating
diffstat:
src/cpu/inorder/resource.cc | 2 +-
src/cpu/inorder/resource.hh | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 6d4e6c81c22b -r 143fa8eed0e5 src/cpu/inorder/resource.cc
--- a/src/cpu/inorder/resource.cc Fri Feb 18 14:28:10 2011 -0500
+++ b/src/cpu/inorder/resource.cc Fri Feb 18 14:28:22 2011 -0500
@@ -407,7 +407,7 @@
ResourceRequest::ResourceRequest(Resource *_res, DynInstPtr _inst,
int stage_num, int res_idx, int slot_num,
unsigned _cmd)
- : res(_res), inst(_inst), cmd(_cmd), stageNum(stage_num),
+ : res(_res), inst(_inst), cmd(_cmd), valid(false), stageNum(stage_num),
resIdx(res_idx), slotNum(slot_num), completed(false),
squashed(false), processing(false), memStall(false)
{
diff -r 6d4e6c81c22b -r 143fa8eed0e5 src/cpu/inorder/resource.hh
--- a/src/cpu/inorder/resource.hh Fri Feb 18 14:28:10 2011 -0500
+++ b/src/cpu/inorder/resource.hh Fri Feb 18 14:28:22 2011 -0500
@@ -299,6 +299,8 @@
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 @@
/////////////////////////////////////////////
/** Get Resource Index */
int getResIdx() { return resIdx; }
-
/** Get Slot Number */
int getSlot() { return slotNum; }
@@ -378,6 +379,7 @@
protected:
/** Resource Identification */
+ bool valid;
ThreadID tid;
int stageNum;
int resIdx;
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev