From 8c78aa31ea6032d52ecf662f4f11860d995cd5b3 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 16 Feb 2015 03:34:55 -0500 Subject: [PATCH] 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. --- src/cpu/testers/traffic_gen/traffic_gen.hh | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2