diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-02-16 03:34:55 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-02-16 03:34:55 -0500 |
commit | 8c78aa31ea6032d52ecf662f4f11860d995cd5b3 (patch) | |
tree | 0b9be1120757712ba671bb97583060b291f0ead7 /src/cpu/testers | |
parent | 93fa8e3cd4033e42869cc4f024e9ad8c8c9427e4 (diff) | |
download | gem5-8c78aa31ea6032d52ecf662f4f11860d995cd5b3.tar.xz |
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.
Diffstat (limited to 'src/cpu/testers')
-rw-r--r-- | src/cpu/testers/traffic_gen/traffic_gen.hh | 6 |
1 files changed, 6 insertions, 0 deletions
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; |