base, sim: Add missing destructors
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Wed, 28 Nov 2018 08:16:33 +0000 (08:16 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 4 Dec 2018 10:02:29 +0000 (10:02 +0000)
commit7f2d7fe4ef622d861e55517279f193cdf8acfc99
tree45c8c30781ac1c9d0e4ff39b9317bd1282bc4764
parent22ce855108cb8a1ebadbd28448b623c470f86d5c
base, sim: Add missing destructors

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>
src/base/statistics.hh
src/cpu/minor/buffers.hh
src/cpu/testers/traffic_gen/stream_gen.hh
src/mem/qos/q_policy.hh
src/sim/faults.hh