Derived classes with virtual functions need to define a virtual
destructor or a protected destructor otherwise calling the base class
destructor has undefined behavior. This change adds a virtual
distructor in the base class.
Change-Id: I1c855aa56dff6585ff99b9147bdb4eb9729a0a53
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/14815
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
*
*/
virtual std::string str() const = 0;
+
+ virtual ~Node() {};
};
/** Shared pointer to a function Node. */
/** Free a reserved slot */
virtual void freeReservation() = 0;
+
+ virtual ~Reservable() {};
};
/** Wrapper for a queue type to act as a pipeline stage input queue.
dataName(data_name)
{ }
- virtual ~Queue() { }
-
public:
/** Push an element into the buffer if it isn't a bubble. Bubbles are
* just discarded. It is assummed that any push into a queue with
}
public:
+ virtual ~StreamGen() {};
+
virtual uint32_t pickStreamID() = 0;
virtual uint32_t pickSubStreamID() = 0;
*/
void setMemCtrl(MemCtrl* mem) { memCtrl = mem; };
+ virtual ~QueuePolicy() {};
+
protected:
QueuePolicy(const QoSMemCtrlParams* p)
: memCtrl(nullptr)
virtual FaultName name() const = 0;
virtual void invoke(ThreadContext * tc, const StaticInstPtr &inst =
StaticInst::nullStaticInstPtr);
+
+ virtual ~FaultBase() {};
};
class UnimpFault : public FaultBase