summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-04-17 14:55:15 -0400
committerAli Saidi <saidi@eecs.umich.edu>2006-04-17 14:55:15 -0400
commit0534e355b77497a1272f6078edae1692d87a15cf (patch)
tree048009b8358b8cf2cc2a609975c37c703bf4fcd4
parent20228000058fce5bae65fca6552c8021b82ab7de (diff)
downloadgem5-0534e355b77497a1272f6078edae1692d87a15cf.tar.xz
change packet: reset() to resetMin() resetAll() which reset the minium
and the entire packet respectively. --HG-- extra : convert_revision : 70b8bc8a2cf304d4c955d1a997df4a9a8edd4989
-rw-r--r--cpu/simple/cpu.cc2
-rw-r--r--mem/request.hh9
2 files changed, 7 insertions, 4 deletions
diff --git a/cpu/simple/cpu.cc b/cpu/simple/cpu.cc
index 85a38f99c..0f1f9574a 100644
--- a/cpu/simple/cpu.cc
+++ b/cpu/simple/cpu.cc
@@ -973,7 +973,7 @@ SimpleCPU::tick()
ifetch_req->setSize(sizeof(MachInst));
#endif
- ifetch_req->reset(true);
+ ifetch_req->resetMin();
ifetch_req->setVaddr(cpuXC->readPC() & ~3);
ifetch_req->setTime(curTick);
#if FULL_SYSTEM
diff --git a/mem/request.hh b/mem/request.hh
index 6bcfd9c5b..903e7503c 100644
--- a/mem/request.hh
+++ b/mem/request.hh
@@ -66,9 +66,12 @@ class Request
/** Constructor, needs a bool to signify if it is/isn't Cpu Request. */
Request(bool isCpu);
- /** reset the request to it's initial state so it can be reused by the
- * CPU.*/
- void reset(bool isCpu);
+ /** reset the request to it's initial state so it can be reused.*/
+ void resetAll(bool isCpu);
+
+ /** reset the request's addrs times, etc, so but not everything to same
+ * time. */
+ void resetMin();
//First non-cpu request fields
private: