DynInst: get rid of dead MyHash code.
Not sure what this was ever used for, but it doesn't seem used anymore.
This commit is contained in:
parent
32eae8094d
commit
fd2d5ae2af
2 changed files with 0 additions and 40 deletions
|
@ -56,25 +56,6 @@
|
||||||
#include "mem/request.hh"
|
#include "mem/request.hh"
|
||||||
#include "sim/faults.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>
|
template <class Impl>
|
||||||
BaseDynInst<Impl>::BaseDynInst(StaticInstPtr _staticInst,
|
BaseDynInst<Impl>::BaseDynInst(StaticInstPtr _staticInst,
|
||||||
StaticInstPtr _macroop,
|
StaticInstPtr _macroop,
|
||||||
|
|
|
@ -591,24 +591,3 @@ InOrderDynInst::dump(std::string &outstring)
|
||||||
|
|
||||||
outstring = s.str();
|
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<const InOrderDynInst *, const InOrderDynInst *,
|
|
||||||
MyHashFunc>
|
|
||||||
my_hash_t;
|
|
||||||
|
|
||||||
my_hash_t thishash;
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue