cpu: TrafficGen sinks snoops without complaining

To be able to use the TrafficGen in a system with caches we need to
allow it to sink incoming snoop requests. By default the master port
panics, so silently ignore any snoops.
This commit is contained in:
Andreas Hansson 2015-02-16 03:34:55 -05:00
parent 93fa8e3cd4
commit 8c78aa31ea

View file

@ -152,6 +152,12 @@ class TrafficGen : public MemObject
bool recvTimingResp(PacketPtr pkt);
void recvTimingSnoopReq(PacketPtr pkt) { }
void recvFunctionalSnoop(PacketPtr pkt) { }
Tick recvAtomicSnoop(PacketPtr pkt) { return 0; }
private:
TrafficGen& trafficGen;