summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-05-30 12:53:52 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-05-30 12:53:52 -0400
commitd1a43d83daa6c8489cc063cdb17ce3c0022b027a (patch)
tree9d426be1673d8efba8c507eb02dd51f3033fdbed
parent64af621cc639d5b43567d3503ec17a0ab3c7ab06 (diff)
downloadgem5-d1a43d83daa6c8489cc063cdb17ce3c0022b027a.tar.xz
cpu: Make hash struct instead of class to please clang
This patch changes the type of the hash function for BasicBlockRanges to match the original definition of the templatized type. Without this, clang raises a warning and combined with the "-Werror" flag this causes compilation to fail.
-rw-r--r--src/cpu/simple/atomic.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/simple/atomic.hh b/src/cpu/simple/atomic.hh
index 5a9275a77..7366213f8 100644
--- a/src/cpu/simple/atomic.hh
+++ b/src/cpu/simple/atomic.hh
@@ -58,7 +58,7 @@ typedef std::pair<Addr, Addr> BasicBlockRange;
/** Overload hash function for BasicBlockRange type */
__hash_namespace_begin
template <>
-class hash<BasicBlockRange>
+struct hash<BasicBlockRange>
{
public:
size_t operator()(const BasicBlockRange &bb) const {