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 <>
Reviewed-by: Giacomo Travaglini <>
Reviewed-by: Jason Lowe-Power <>
Maintainer: Jason Lowe-Power <>
5 files changed