From 22c04190c607b9360d9a23548f8a54e83cf0e74a Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 12 Oct 2015 04:07:59 -0400 Subject: misc: Remove redundant compiler-specific defines This patch moves away from using M5_ATTR_OVERRIDE and the m5::hashmap (and similar) abstractions, as these are no longer needed with gcc 4.7 and clang 3.1 as minimum compiler versions. --- src/base/cp_annotate.hh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/base/cp_annotate.hh') diff --git a/src/base/cp_annotate.hh b/src/base/cp_annotate.hh index a57d9bc79..0a0cc34a3 100644 --- a/src/base/cp_annotate.hh +++ b/src/base/cp_annotate.hh @@ -47,10 +47,10 @@ #include #include #include +#include #include #include "base/loader/symtab.hh" -#include "base/hashmap.hh" #include "base/trace.hh" #include "base/types.hh" #include "debug/AnnotateQ.hh" @@ -127,7 +127,7 @@ class CPA /** * Provide a hash function for the CPI Id type */ -__hash_namespace_begin +namespace std { template <> struct hash > { @@ -139,7 +139,7 @@ struct hash > } }; -__hash_namespace_end +} class CPA : SimObject { @@ -202,8 +202,8 @@ class CPA : SimObject uint8_t cpu; bool dump; - void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; - void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; + void serialize(CheckpointOut &cp) const override; + void unserialize(CheckpointIn &cp) override; }; typedef std::shared_ptr AnnDataPtr; @@ -236,12 +236,12 @@ class CPA : SimObject uint64_t conId; // Convert state strings into state ids - typedef m5::hash_map SCache; + typedef std::unordered_map SCache; typedef std::vector StCache; // Convert sm and queue name,id into queue id typedef std::pair Id; - typedef m5::hash_map IdHCache; + typedef std::unordered_map IdHCache; typedef std::vector IdCache; // Hold mapping of sm and queues to output python @@ -266,7 +266,7 @@ class CPA : SimObject typedef std::map LinkMap; // SC Links - typedef m5::hash_map ScHCache; + typedef std::unordered_map ScHCache; typedef std::vector ScCache; @@ -540,8 +540,8 @@ class CPA : SimObject void dump(bool all); void dumpKey(); - void serialize(CheckpointOut &cp) const M5_ATTR_OVERRIDE; - void unserialize(CheckpointIn &cp) M5_ATTR_OVERRIDE; + void serialize(CheckpointOut &cp) const override; + void unserialize(CheckpointIn &cp) override; }; #endif // !CP_ANNOTATE -- cgit v1.2.3