From: Andreas Hansson Date: Mon, 16 Feb 2015 08:34:55 +0000 (-0500) Subject: cpu: TrafficGen sinks snoops without complaining X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c78aa31ea6032d52ecf662f4f11860d995cd5b3;p=gem5.git 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. --- diff --git a/src/cpu/testers/traffic_gen/traffic_gen.hh b/src/cpu/testers/traffic_gen/traffic_gen.hh index 91460053a..b9081b1d4 100644 --- a/src/cpu/testers/traffic_gen/traffic_gen.hh +++ b/src/cpu/testers/traffic_gen/traffic_gen.hh @@ -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;