summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sim/port.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/port.hh b/src/sim/port.hh
index 111417263..2acdb7a78 100644
--- a/src/sim/port.hh
+++ b/src/sim/port.hh
@@ -147,4 +147,11 @@ class Port
}
};
+static inline std::ostream &
+operator << (std::ostream &os, const Port &port)
+{
+ os << port.name();
+ return os;
+}
+
#endif //__SIM_PORT_HH__