From: Steve Reinhardt Date: Fri, 2 Mar 2012 17:17:42 +0000 (-0800) Subject: DynInst: get rid of dead MyHash code. X-Git-Tag: stable_2012_06_28~196 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd2d5ae2af46e9f9780c3728c5bd93ed803105b8;p=gem5.git DynInst: get rid of dead MyHash code. Not sure what this was ever used for, but it doesn't seem used anymore. --- 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 -my_hash_t; - -my_hash_t thishash; -#endif - template BaseDynInst::BaseDynInst(StaticInstPtr _staticInst, StaticInstPtr _macroop, diff --git a/src/cpu/inorder/inorder_dyn_inst.cc b/src/cpu/inorder/inorder_dyn_inst.cc index 702442478..24895750b 100644 --- a/src/cpu/inorder/inorder_dyn_inst.cc +++ b/src/cpu/inorder/inorder_dyn_inst.cc @@ -591,24 +591,3 @@ InOrderDynInst::dump(std::string &outstring) outstring = s.str(); } - - -#define NOHASH -#ifndef NOHASH - -#include "base/hashmap.hh" - -unsigned int MyHashFunc(const InOrderDynInst *addr) -{ - unsigned a = (unsigned)addr; - unsigned hash = (((a >> 14) ^ ((a >> 2) & 0xffff))) & 0x7FFFFFFF; - - return hash; -} - -typedef m5::hash_map -my_hash_t; - -my_hash_t thishash; -#endif