diff options
author | Korey Sewell <ksewell@umich.edu> | 2011-06-19 21:43:40 -0400 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2011-06-19 21:43:40 -0400 |
commit | c4deabfb97928f81acb0d66338426cb5f2687c37 (patch) | |
tree | 6129a36328db546cabcf6cdd78f87b889eb193bb /src/cpu/inorder/resources/cache_unit.hh | |
parent | f1c3691356355d2ca865e48e91814c56293f6326 (diff) | |
download | gem5-c4deabfb97928f81acb0d66338426cb5f2687c37.tar.xz |
inorder: register ports for FS mode
handle "snoop" port registration as well as functional
port setup for FS mode
Diffstat (limited to 'src/cpu/inorder/resources/cache_unit.hh')
-rw-r--r-- | src/cpu/inorder/resources/cache_unit.hh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cpu/inorder/resources/cache_unit.hh b/src/cpu/inorder/resources/cache_unit.hh index 91a8703f7..611ab62f2 100644 --- a/src/cpu/inorder/resources/cache_unit.hh +++ b/src/cpu/inorder/resources/cache_unit.hh @@ -89,16 +89,18 @@ class CacheUnit : public Resource CachePort(CacheUnit *_cachePortUnit) : Port(_cachePortUnit->name() + "-cache-port", (MemObject*)_cachePortUnit->cpu), - cachePortUnit(_cachePortUnit) + cachePortUnit(_cachePortUnit), snoopRangeSent(false) { } bool snoopRangeSent; + void setPeer(Port *port); + protected: /** Atomic version of receive. Panics. */ Tick recvAtomic(PacketPtr pkt); - /** Functional version of receive. Panics. */ + /** Functional version of receive.*/ void recvFunctional(PacketPtr pkt); /** Receives status change. Other than range changing, panics. */ @@ -106,11 +108,10 @@ class CacheUnit : public Resource /** Returns the address ranges of this device. */ void getDeviceAddressRanges(AddrRangeList &resp, - AddrRangeList &snoop) - { resp.clear(); snoop.clear(); } + bool &snoop) + { resp.clear(); snoop = true; } - /** Timing version of receive. Handles setting fetch to the - * proper status to start fetching. */ + /** Timing version of receive */ bool recvTiming(PacketPtr pkt); /** Handles doing a retry of a failed fetch. */ |