sal/arm: compiler warning fixed (see -Wdelete-non-virtual-dtor)

This commit introduces a virtual dtor in the ArmCPUState class to
prevent the compiler from producing the following warning:
 "deleting object of polymorphic class type 'fail::Gem5ArmCPU' which
  has non-virtual destructor might cause undefined behaviour"

Change-Id: I5029662064e72ae87a9f0e36aeaa309e4cb2291b
This commit is contained in:
Adrian Böckenkamp
2013-07-31 18:07:55 +02:00
parent 618fdb8e77
commit 1c55923e55

View File

@ -18,6 +18,7 @@ public:
* @return the current lr
*/
virtual address_t getLinkRegister() const = 0;
virtual ~ArmCPUState() { }
};
// TODO: Enum for misc registers