summaryrefslogtreecommitdiff
path: root/src/dev/io_device.hh
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-03-22 18:39:51 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-03-22 18:39:51 -0400
commit2c47413a7a4563c724d8470971d1059bdfe01c92 (patch)
treef830dca9ca97f0e35ca33dc5f0db172ac05720ac /src/dev/io_device.hh
parente3d3ab451345b2aa703df0c208052c606c91d72b (diff)
parent12b7ebcbcab1c5ea30065ea45908e5711b05b63f (diff)
downloadgem5-2c47413a7a4563c724d8470971d1059bdfe01c92.tar.xz
Merge zizzer:/bk/newmem
into zeep.pool:/z/saidi/work/m5.newmem --HG-- extra : convert_revision : fd590d464359d8ae859998a9f446b960781a5e33
Diffstat (limited to 'src/dev/io_device.hh')
-rw-r--r--src/dev/io_device.hh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/dev/io_device.hh b/src/dev/io_device.hh
index 902cde909..cd7a5296a 100644
--- a/src/dev/io_device.hh
+++ b/src/dev/io_device.hh
@@ -132,6 +132,7 @@ class DmaPort : public Port
bool dmaPending() { return pendingCount > 0; }
+ int cacheBlockSize() { return peerBlockSize(); }
unsigned int drain(Event *de);
};
@@ -261,13 +262,17 @@ class DmaDevice : public PioDevice
addr, size, event, data);
}
- void dmaRead(Addr addr, int size, Event *event, uint8_t *data = NULL)
- { dmaPort->dmaAction(MemCmd::ReadReq, addr, size, event, data); }
+ void dmaRead(Addr addr, int size, Event *event, uint8_t *data)
+ {
+ dmaPort->dmaAction(MemCmd::ReadReq, addr, size, event, data);
+ }
bool dmaPending() { return dmaPort->dmaPending(); }
virtual unsigned int drain(Event *de);
+ int cacheBlockSize() { return dmaPort->cacheBlockSize(); }
+
virtual Port *getPort(const std::string &if_name, int idx = -1)
{
if (if_name == "pio") {