cpu: TrafficGen sinks snoops without complaining
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 16 Feb 2015 08:34:55 +0000 (03:34 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 16 Feb 2015 08:34:55 +0000 (03:34 -0500)
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

index 91460053a9d20712b906d6024fb29706e0dff47d..b9081b1d48a76701b61038457192b2e9a458aa55 100644 (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;