diff options
author | Stephen Hines <hines@cs.fsu.edu> | 2008-02-06 16:32:40 -0500 |
---|---|---|
committer | Stephen Hines <hines@cs.fsu.edu> | 2008-02-06 16:32:40 -0500 |
commit | 6cc1573923754ecb406d03ab4d807f928737c294 (patch) | |
tree | 08e407623fedf71b04b128eb93734d4f51988b36 /src/mem | |
parent | 0ccf9a2c3751f160d7d51153ef468a60b4daf8d0 (diff) | |
download | gem5-6cc1573923754ecb406d03ab4d807f928737c294.tar.xz |
Make the Event::description() a const function
--HG--
extra : convert_revision : c7768d54d3f78685e93920069f5485083ca989c0
Diffstat (limited to 'src/mem')
-rw-r--r-- | src/mem/bridge.hh | 2 | ||||
-rw-r--r-- | src/mem/bus.cc | 2 | ||||
-rw-r--r-- | src/mem/bus.hh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/bridge.hh b/src/mem/bridge.hh index df48eb8c5..1331a45f9 100644 --- a/src/mem/bridge.hh +++ b/src/mem/bridge.hh @@ -150,7 +150,7 @@ class Bridge : public MemObject virtual void process() { port->trySend(); } - virtual const char *description() { return "bridge send"; } + virtual const char *description() const { return "bridge send"; } }; SendEvent sendEvent; diff --git a/src/mem/bus.cc b/src/mem/bus.cc index cfddfff12..66b20703f 100644 --- a/src/mem/bus.cc +++ b/src/mem/bus.cc @@ -105,7 +105,7 @@ void Bus::BusFreeEvent::process() bus->recvRetry(-1); } -const char * Bus::BusFreeEvent::description() +const char * Bus::BusFreeEvent::description() const { return "bus became available"; } diff --git a/src/mem/bus.hh b/src/mem/bus.hh index 9ba43c79d..0c23175f1 100644 --- a/src/mem/bus.hh +++ b/src/mem/bus.hh @@ -131,7 +131,7 @@ class Bus : public MemObject public: BusFreeEvent(Bus * _bus); void process(); - const char *description(); + const char *description() const; }; /** a globally unique id for this bus. */ |