From bbd3703fbb3a1f9034143de471eca66a6a497fbb Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 19 Dec 2016 16:25:40 +0000 Subject: [PATCH] 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 --- src/mem/xbar.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */