summaryrefslogtreecommitdiff
path: root/src/mem/cache/coherence/uni_coherence.hh
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-06-28 17:28:33 -0400
committerRon Dreslinski <rdreslin@umich.edu>2006-06-28 17:28:33 -0400
commit0d323c753d897bec72884089bc0dc334a64e9eb3 (patch)
treeb5c69c91860b1282cf2ef8a415ce965e51d94f4f /src/mem/cache/coherence/uni_coherence.hh
parentfc281d0b64fca8d2809ec462148acb7cf0461ea5 (diff)
downloadgem5-0d323c753d897bec72884089bc0dc334a64e9eb3.tar.xz
More Changes, working towards cache.cc compiling. Headers cleaned up.
src/mem/cache/cache_blk.hh: Remove XC --HG-- extra : convert_revision : aa2c43e4412ebb93165e12f693d5126983cfd0dc
Diffstat (limited to 'src/mem/cache/coherence/uni_coherence.hh')
-rw-r--r--src/mem/cache/coherence/uni_coherence.hh11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mem/cache/coherence/uni_coherence.hh b/src/mem/cache/coherence/uni_coherence.hh
index b64f6c931..4e895997f 100644
--- a/src/mem/cache/coherence/uni_coherence.hh
+++ b/src/mem/cache/coherence/uni_coherence.hh
@@ -34,7 +34,6 @@
#include "base/trace.hh"
#include "mem/cache/cache_blk.hh"
#include "mem/cache/miss/mshr_queue.hh"
-#include "mem/mem_cmd.hh"
#include "mem/packet.hh"
class BaseCache;
@@ -79,11 +78,11 @@ class UniCoherence
*/
Packet::Command getBusCmd(Packet::Command &cmd, CacheBlk::State state)
{
- if (cmd == Hard_Prefetch && state)
+ if (cmd == Packet::HardPFReq && state)
warn("Trying to issue a prefetch to a block we already have\n");
- if (cmd == Writeback)
- return Writeback;
- return Read;
+ if (cmd == Packet::Writeback)
+ return Packet::Writeback;
+ return Packet::ReadReq;
}
/**
@@ -96,7 +95,7 @@ class UniCoherence
{
if (pkt->senderState) //Blocking Buffers don't get mshrs
{
- if (pkt->senderState->originalCmd == Hard_Prefetch) {
+ if (((MSHR *)(pkt->senderState))->originalCmd == Packet::HardPFReq) {
DPRINTF(HWPrefetch, "Marking a hardware prefetch as such in the state\n");
return BlkHWPrefetched | BlkValid | BlkWritable;
}