summaryrefslogtreecommitdiff
path: root/src/dev/io_device.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-05-23 09:14:12 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-05-23 09:14:12 -0400
commit5b36cf623cd065eea4f7b5e8b892dc904c030d56 (patch)
tree624c4dd0f98bfa824a05c61d0b9b6554ec7a9a08 /src/dev/io_device.hh
parent31b4ac5cec638ee5a60e15fada85f5890300ec6a (diff)
downloadgem5-5b36cf623cd065eea4f7b5e8b892dc904c030d56.tar.xz
MEM: Add a snooping DMA port subclass for table walker
This patch makes the (device) DmaPort non-snooping and removes the recvSnoop constructor parameter and instead introduces a SnoopingDmaPort subclass for the ARM table walker. Functionality is unchanged, as are the stats, and the patch merely clarifies that the normal DMA ports are not snooping (although they may issue requests that are snooped by others, as done with PCI, PCIe, AMBA4 ACE etc). Currently this port is declared in the ARM table walker as it is not used anywhere else. If other ports were to have similar behaviour it could be moved in a future patch.
Diffstat (limited to 'src/dev/io_device.hh')
-rw-r--r--src/dev/io_device.hh27
1 files changed, 1 insertions, 26 deletions
diff --git a/src/dev/io_device.hh b/src/dev/io_device.hh
index 99b207595..0e6556a50 100644
--- a/src/dev/io_device.hh
+++ b/src/dev/io_device.hh
@@ -143,34 +143,10 @@ class DmaPort : public MasterPort
* it is that it's sending. */
bool inRetry;
- /** Port accesses a cache which requires snooping */
- bool recvSnoops;
-
virtual bool recvTimingResp(PacketPtr pkt);
- virtual void recvTimingSnoopReq(PacketPtr pkt)
- {
- if (!recvSnoops)
- panic("%s was not expecting a snoop\n", name());
- }
-
- virtual Tick recvAtomicSnoop(PacketPtr pkt)
- {
- if (!recvSnoops)
- panic("%s was not expecting a snoop\n", name());
- return 0;
- }
-
- virtual void recvFunctionalSnoop(PacketPtr pkt)
- {
- if (!recvSnoops)
- panic("%s was not expecting a snoop\n", name());
- }
-
virtual void recvRetry() ;
- virtual bool isSnooping() const { return recvSnoops; }
-
void queueDma(PacketPtr pkt, bool front = false);
void sendDma();
@@ -178,8 +154,7 @@ class DmaPort : public MasterPort
EventWrapper<DmaPort, &DmaPort::sendDma> backoffEvent;
public:
- DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff,
- bool recv_snoops = false);
+ DmaPort(MemObject *dev, System *s, Tick min_backoff, Tick max_backoff);
void dmaAction(Packet::Command cmd, Addr addr, int size, Event *event,
uint8_t *data, Tick delay, Request::Flags flag = 0);