diff options
author | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-10 14:10:28 -0800 |
---|---|---|
committer | Steve Reinhardt <Steve.Reinhardt@amd.com> | 2008-11-10 14:10:28 -0800 |
commit | 42bd460d7f91f4d0f76901a8d661d5fe6292b7f2 (patch) | |
tree | b249930d5b6b14f18e46e20410d5f502946631dc /src/mem/cache/mshr.cc | |
parent | c981b7ed50167a9598f6f8773ab78b47b81aa08a (diff) | |
download | gem5-42bd460d7f91f4d0f76901a8d661d5fe6292b7f2.tar.xz |
Cache: Refactor packet forwarding a bit.
Makes adding write-through operations easier.
Diffstat (limited to 'src/mem/cache/mshr.cc')
-rw-r--r-- | src/mem/cache/mshr.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc index 6537f6343..04b2b8d77 100644 --- a/src/mem/cache/mshr.cc +++ b/src/mem/cache/mshr.cc @@ -156,7 +156,7 @@ MSHR::allocate(Addr _addr, int _size, PacketPtr target, readyTime = whenReady; order = _order; assert(target); - isCacheFill = false; + isForward = false; _isUncacheable = target->req->isUncacheable(); inService = false; downstreamPending = false; @@ -187,7 +187,7 @@ bool MSHR::markInService() { assert(!inService); - if (isSimpleForward()) { + if (isForwardNoResponse()) { // we just forwarded the request packet & don't expect a // response, so get rid of it assert(getNumTargets() == 1); @@ -403,7 +403,8 @@ MSHR::print(std::ostream &os, int verbosity, const std::string &prefix) const { ccprintf(os, "%s[%x:%x] %s %s %s state: %s %s %s %s\n", prefix, addr, addr+size-1, - isCacheFill ? "Fill" : "", + isForward ? "Forward" : "", + isForwardNoResponse() ? "ForwNoResp" : "", needsExclusive() ? "Excl" : "", _isUncacheable ? "Unc" : "", inService ? "InSvc" : "", |