summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/io_device.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/io_device.hh b/dev/io_device.hh
index b25048e3d..ba16372cc 100644
--- a/dev/io_device.hh
+++ b/dev/io_device.hh
@@ -203,7 +203,7 @@ class PioDevice : public SimObject
virtual ~PioDevice();
- virtual Port *getPort(std::string if_name)
+ virtual Port *getPort(const std::string &if_name)
{
if (if_name == "pio")
return pioPort;
@@ -223,7 +223,7 @@ class DmaDevice : public PioDevice
DmaDevice(const std::string &name, Platform *p);
virtual ~DmaDevice();
- virtual Port *getPort(std::string if_name)
+ virtual Port *getPort(const std::string &if_name)
{
if (if_name == "pio")
return pioPort;