summaryrefslogtreecommitdiff
path: root/src/cpu/base_dyn_inst_impl.hh
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2012-03-02 09:17:42 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2012-03-02 09:17:42 -0800
commitfd2d5ae2af46e9f9780c3728c5bd93ed803105b8 (patch)
treef7cc7f8ddb56763d059eb8316b4b26c00e0587c2 /src/cpu/base_dyn_inst_impl.hh
parent32eae8094d8931f161784825ad013e9c6d995c17 (diff)
downloadgem5-fd2d5ae2af46e9f9780c3728c5bd93ed803105b8.tar.xz
DynInst: get rid of dead MyHash code.
Not sure what this was ever used for, but it doesn't seem used anymore.
Diffstat (limited to 'src/cpu/base_dyn_inst_impl.hh')
-rw-r--r--src/cpu/base_dyn_inst_impl.hh19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/cpu/base_dyn_inst_impl.hh b/src/cpu/base_dyn_inst_impl.hh
index d2ecd01ff..684be72b6 100644
--- a/src/cpu/base_dyn_inst_impl.hh
+++ b/src/cpu/base_dyn_inst_impl.hh
@@ -56,25 +56,6 @@
#include "mem/request.hh"
#include "sim/faults.hh"
-#define NOHASH
-#ifndef NOHASH
-
-#include "base/hashmap.hh"
-
-unsigned int MyHashFunc(const BaseDynInst *addr)
-{
- unsigned a = (unsigned)addr;
- unsigned hash = (((a >> 14) ^ ((a >> 2) & 0xffff))) & 0x7FFFFFFF;
-
- return hash;
-}
-
-typedef m5::hash_map<const BaseDynInst *, const BaseDynInst *, MyHashFunc>
-my_hash_t;
-
-my_hash_t thishash;
-#endif
-
template <class Impl>
BaseDynInst<Impl>::BaseDynInst(StaticInstPtr _staticInst,
StaticInstPtr _macroop,