/* TODO: need a more informative way of reporting errors */
printf("ERROR: may read from uninitialized atomic\n");
}
-
+
if (DBG_ENABLED() || !initialized) {
printf("Reached read action:\n");
curr->print();
curr->get_node()->print_may_read_from();
printf("End printing may_read_from\n");
}
-
+
ASSERT(initialized);
}
*/
int ModelChecker::switch_to_master(ModelAction *act)
{
- Thread *old;
-
DBG();
- old = thread_current();
+ Thread * old = thread_current();
set_current_action(act);
old->set_state(THREAD_READY);
return Thread::swap(old, get_system_context());
size_t len = ((uintptr_t)end - (uintptr_t)begin) / PAGESIZE;
if (len != 0)
addMemoryRegionToSnapShot(begin, len);
- DEBUG("%s\n", buf);
- DEBUG("%45s: %18p - %18p\t%c%c%c%c\n", regionname, begin, end, r, w, x, p);
}
}
pclose(map);