diff --git a/src/sim/port.hh b/src/sim/port.hh index 1114172637..2acdb7a788 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__