From: Andreas Sandberg Date: Mon, 19 Dec 2016 16:25:40 +0000 (+0000) Subject: mem: Make the BaseXBar public to not confuse Python wrappers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbd3703fbb3a1f9034143de471eca66a6a497fbb;p=gem5.git mem: Make the BaseXBar public to not confuse Python wrappers The Python wrappers generally assume that destructors are public. Make the BaseXBar destructor public to avoid confusing the Python wrapper. Change-Id: If958802409c0be74e875dd6e279742abfdb3ede1 Signed-off-by: Andreas Sandberg Reviewed-by: Nikos Nikoleris Reviewed-by: Curtis Dunham --- diff --git a/src/mem/xbar.hh b/src/mem/xbar.hh index a92eb044e..c9949e364 100644 --- a/src/mem/xbar.hh +++ b/src/mem/xbar.hh @@ -439,8 +439,6 @@ class BaseXBar : public MemObject BaseXBar(const BaseXBarParams *p); - virtual ~BaseXBar(); - /** * Stats for transaction distribution and data passing through the * crossbar. The transaction distribution is globally counting @@ -456,6 +454,8 @@ class BaseXBar : public MemObject public: + virtual ~BaseXBar(); + virtual void init(); /** A function used to return the port associated with this object. */