func_inst_map(),
inst_list(),
entry_insts(),
- thrd_read_map(),
- read_locations()
+ thrd_read_map()
{}
/* Check whether FuncInst with the same type, position, and location
read_map->put(location, read_from_val);
/* Store the memory locations where atomic reads happen */
- bool push_loc = true;
- mllnode<void *> * it;
- for (it = read_locations.begin();it != NULL;it=it->getNext()) {
- if (location == it->getVal()) {
- push_loc = false;
- break;
- }
- }
-
- if (push_loc)
- read_locations.push_back(location);
+ // read_locations.add(location);
}
uint64_t FuncNode::query_last_read(void * location, uint32_t tid)
{
ASSERT(thrd_read_map.size() > tid);
read_map_t * read_map = thrd_read_map[tid];
-
+/*
mllnode<void *> * it;
for (it = read_locations.begin();it != NULL;it=it->getNext()) {
if ( !read_map->contains(it->getVal()) )
uint64_t read_val = read_map->get(it->getVal());
model_print("last read of thread %d at %p: 0x%x\n", tid, it->getVal(), read_val);
}
+*/
}