1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 57 unchanged lines hidden (view full) --- 66 67 protected: 68 69 class CpuSidePort : public CachePort 70 { 71 public: 72 CpuSidePort(const std::string &_name, 73 Cache<TagStore> *_cache, |
74 const std::string &_label); |
75 76 // BaseCache::CachePort just has a BaseCache *; this function 77 // lets us get back the type info we lost when we stored the 78 // cache pointer there. 79 Cache<TagStore> *myCache() { 80 return static_cast<Cache<TagStore> *>(cache); 81 } 82 --- 7 unchanged lines hidden (view full) --- 90 virtual void recvFunctional(PacketPtr pkt); 91 }; 92 93 class MemSidePort : public CachePort 94 { 95 public: 96 MemSidePort(const std::string &_name, 97 Cache<TagStore> *_cache, |
98 const std::string &_label); |
99 100 // BaseCache::CachePort just has a BaseCache *; this function 101 // lets us get back the type info we lost when we stored the 102 // cache pointer there. 103 Cache<TagStore> *myCache() { 104 return static_cast<Cache<TagStore> *>(cache); 105 } 106 --- 223 unchanged lines hidden --- |