diff options
Diffstat (limited to 'src/mem/port.hh')
-rw-r--r-- | src/mem/port.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/port.hh b/src/mem/port.hh index e738cfc63..bb74bf497 100644 --- a/src/mem/port.hh +++ b/src/mem/port.hh @@ -161,7 +161,7 @@ class Port : public EventManager this function to be called, so it just returns 0. Anytthing that is concerned with the size should just ignore that. */ - virtual int deviceBlockSize() { return 0; } + virtual unsigned deviceBlockSize() const { return 0; } /** The peer port is requesting us to reply with a list of the ranges we are responsible for. @@ -214,7 +214,7 @@ class Port : public EventManager /** Called by the associated device if it wishes to find out the blocksize of the device on attached to the peer port. */ - int peerBlockSize() { return peer->deviceBlockSize(); } + unsigned peerBlockSize() const { return peer->deviceBlockSize(); } /** Called by the associated device if it wishes to find out the address ranges connected to the peer ports devices. |