From: Gabe Black Date: Wed, 3 Oct 2018 23:16:08 +0000 (-0700) Subject: systemc: Add an sc_gem5::Port destructor. X-Git-Tag: v19.0.0.0~1537 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d45caee43e10c50d837aadc56b385f6340366cae;p=gem5.git systemc: Add an sc_gem5::Port destructor. This destructor just removes the port from the list of all ports. Change-Id: I809b529540c2946d20aeb8d64467d77dc94a7a96 Reviewed-on: https://gem5-review.googlesource.com/c/13288 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/core/port.hh b/src/systemc/core/port.hh index 8c09ad0d3..f7b1bbce4 100644 --- a/src/systemc/core/port.hh +++ b/src/systemc/core/port.hh @@ -147,6 +147,8 @@ class Port allPorts.push_front(this); } + ~Port() { allPorts.remove(this); } + void bind(::sc_core::sc_interface *interface) {