X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmem%2Fbus.hh;h=97a65c8a92f4e5f66297a93955ed2a47c3d7b517;hb=2a1309f2134986edcbff846aff5951ec1e8df6e1;hp=4de42b538da5ce1f3597e595c262628509247654;hpb=8d2e51c7f52670055ffe97e221302561b87015a2;p=gem5.git diff --git a/src/mem/bus.hh b/src/mem/bus.hh index 4de42b538..97a65c8a9 100644 --- a/src/mem/bus.hh +++ b/src/mem/bus.hh @@ -119,7 +119,7 @@ class Bus : public MemObject // Ask the bus to ask everyone on the bus what their block size is and // take the max of it. This might need to be changed a bit if we ever // support multiple block sizes. - virtual int deviceBlockSize() + virtual unsigned deviceBlockSize() const { return bus->findBlockSize(id); } }; @@ -259,7 +259,7 @@ class Bus : public MemObject * @param id id of the busport that made the request * @return the max of all the sizes */ - int findBlockSize(int id); + unsigned findBlockSize(int id); BusFreeEvent busIdle; @@ -308,8 +308,8 @@ class Bus : public MemObject /** Has the user specified their own default responder? */ bool responderSet; - int defaultBlockSize; - int cachedBlockSize; + unsigned defaultBlockSize; + unsigned cachedBlockSize; bool cachedBlockSizeValid; // Cache for the peer port interfaces