base.cc (10994:51ff41f6a4a5) | base.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright (c) 2015 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 --- 27 unchanged lines hidden (view full) --- 36 * 37 * Authors: Andreas Sandberg 38 */ 39 40#include "mem/probes/base.hh" 41 42#include "params/BaseMemProbe.hh" 43 | 1/* 2 * Copyright (c) 2015 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 --- 27 unchanged lines hidden (view full) --- 36 * 37 * Authors: Andreas Sandberg 38 */ 39 40#include "mem/probes/base.hh" 41 42#include "params/BaseMemProbe.hh" 43 |
44 | |
45BaseMemProbe::BaseMemProbe(BaseMemProbeParams *p) 46 : SimObject(p) 47{ 48} 49 50void 51BaseMemProbe::regProbeListeners() 52{ 53 const BaseMemProbeParams *p( 54 dynamic_cast<const BaseMemProbeParams *>(params())); 55 assert(p); 56 57 listeners.resize(p->manager.size()); 58 for (int i = 0; i < p->manager.size(); i++) { 59 ProbeManager *const mgr(p->manager[i]->getProbeManager()); 60 listeners[i].reset(new PacketListener(*this, mgr, p->probe_name)); 61 } 62} | 44BaseMemProbe::BaseMemProbe(BaseMemProbeParams *p) 45 : SimObject(p) 46{ 47} 48 49void 50BaseMemProbe::regProbeListeners() 51{ 52 const BaseMemProbeParams *p( 53 dynamic_cast<const BaseMemProbeParams *>(params())); 54 assert(p); 55 56 listeners.resize(p->manager.size()); 57 for (int i = 0; i < p->manager.size(); i++) { 58 ProbeManager *const mgr(p->manager[i]->getProbeManager()); 59 listeners[i].reset(new PacketListener(*this, mgr, p->probe_name)); 60 } 61} |