ARM: Fix a memory leak with the table walker.
[gem5.git] / src / arch / arm / types.hh
index 6bd449e3d5e878da7d73d5b5a1e2dd03f4101fd4..15f9f4d0af3b86f3b225834669028c66549cf2ec 100644 (file)
@@ -48,6 +48,7 @@
 #include "base/hashmap.hh"
 #include "base/misc.hh"
 #include "base/types.hh"
+#include "debug/Predecoder.hh"
 
 namespace ArmISA
 {
@@ -432,6 +433,12 @@ namespace ArmISA
                 _itstate == opc._itstate && _nextItstate == opc._nextItstate;
         }
 
+        bool
+        operator != (const PCState &opc) const
+        {
+            return !(*this == opc);
+        }
+
         void
         serialize(std::ostream &os)
         {