arch: Add a virtual destructor to BaseHTMCheckpoint.
authorGabe Black <gabeblack@google.com>
Wed, 9 Sep 2020 00:45:16 +0000 (17:45 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 9 Sep 2020 07:08:53 +0000 (07:08 +0000)
Since it has virtual methods, it should also have a virtual destructor.
My compiler complains otherwise, which breaks my build.

Change-Id: I44bba97b76931bab6e3511fcdee79831080c12d4
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34215
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/generic/htm.hh

index 74e2d443b541a5e00f9f2fe9b3f757c910b442c1..5f45f5da55f4728eb17f30e72e70cf516a67490a 100644 (file)
@@ -137,6 +137,7 @@ class BaseHTMCheckpoint
     {
         reset();
     }
+    virtual ~BaseHTMCheckpoint() {}
 
     /**
      * Every ISA implementing HTM support should override the