base.hh (13624:3d8220c2d41d) | base.hh (13667:e3ae3619b9ab) |
---|---|
1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 62 unchanged lines hidden (view full) --- 71 : ProbeListenerArgBase(pm, name), 72 parent(_parent) {} 73 void notify(const PacketPtr &pkt) override; 74 protected: 75 BasePrefetcher &parent; 76 }; 77 78 std::vector<PrefetchListener *> listeners; | 1/* 2 * Copyright (c) 2013-2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 62 unchanged lines hidden (view full) --- 71 : ProbeListenerArgBase(pm, name), 72 parent(_parent) {} 73 void notify(const PacketPtr &pkt) override; 74 protected: 75 BasePrefetcher &parent; 76 }; 77 78 std::vector<PrefetchListener *> listeners; |
79 protected: | |
80 | 79 |
80 public: 81 |
|
81 /** 82 * Class containing the information needed by the prefetch to train and 83 * generate new prefetch requests. 84 */ 85 class PrefetchInfo { 86 /** The address. */ 87 Addr address; 88 /** The program counter that generated this address. */ --- 74 unchanged lines hidden (view full) --- 163 * Constructs a PrefetchInfo using a new address value and 164 * another PrefetchInfo as a reference. 165 * @param pfi PrefetchInfo used to generate this new object 166 * @param addr the address value of the new object 167 */ 168 PrefetchInfo(PrefetchInfo const &pfi, Addr addr); 169 }; 170 | 82 /** 83 * Class containing the information needed by the prefetch to train and 84 * generate new prefetch requests. 85 */ 86 class PrefetchInfo { 87 /** The address. */ 88 Addr address; 89 /** The program counter that generated this address. */ --- 74 unchanged lines hidden (view full) --- 164 * Constructs a PrefetchInfo using a new address value and 165 * another PrefetchInfo as a reference. 166 * @param pfi PrefetchInfo used to generate this new object 167 * @param addr the address value of the new object 168 */ 169 PrefetchInfo(PrefetchInfo const &pfi, Addr addr); 170 }; 171 |
172 protected: 173 |
|
171 // PARAMETERS 172 173 /** Pointr to the parent cache. */ 174 BaseCache* cache; 175 176 /** The block size of the parent cache. */ 177 unsigned blkSize; 178 --- 102 unchanged lines hidden --- | 174 // PARAMETERS 175 176 /** Pointr to the parent cache. */ 177 BaseCache* cache; 178 179 /** The block size of the parent cache. */ 180 unsigned blkSize; 181 --- 102 unchanged lines hidden --- |