{
DEBUG("addr = %p, val = %" PRIu8 "\n", addr, val);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckWrite(tid, addr, cv);
+ raceCheckWrite(tid, addr);
(*(uint8_t *)addr) = val;
}
{
DEBUG("addr = %p, val = %" PRIu16 "\n", addr, val);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckWrite(tid, addr, cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1), cv);
+ raceCheckWrite(tid, addr);
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1));
(*(uint16_t *)addr) = val;
}
{
DEBUG("addr = %p, val = %" PRIu32 "\n", addr, val);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckWrite(tid, addr, cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 2), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 3), cv);
+ raceCheckWrite(tid, addr);
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 2));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 3));
(*(uint32_t *)addr) = val;
}
{
DEBUG("addr = %p, val = %" PRIu64 "\n", addr, val);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckWrite(tid, addr, cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 2), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 3), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 4), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 5), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 6), cv);
- raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 7), cv);
+ raceCheckWrite(tid, addr);
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 1));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 2));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 3));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 4));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 5));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 6));
+ raceCheckWrite(tid, (void *)(((uintptr_t)addr) + 7));
(*(uint64_t *)addr) = val;
}
{
DEBUG("addr = %p\n", addr);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckRead(tid, addr, cv);
+ raceCheckRead(tid, addr);
return *((uint8_t *)addr);
}
{
DEBUG("addr = %p\n", addr);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckRead(tid, addr, cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1), cv);
+ raceCheckRead(tid, addr);
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1));
return *((uint16_t *)addr);
}
{
DEBUG("addr = %p\n", addr);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckRead(tid, addr, cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 2), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 3), cv);
+ raceCheckRead(tid, addr);
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 2));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 3));
return *((uint32_t *)addr);
}
{
DEBUG("addr = %p\n", addr);
thread_id_t tid = thread_current()->get_id();
- ClockVector *cv = model->get_cv(tid);
- raceCheckRead(tid, addr, cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 2), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 3), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 4), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 5), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 6), cv);
- raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 7), cv);
+ raceCheckRead(tid, addr);
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 1));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 2));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 3));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 4));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 5));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 6));
+ raceCheckRead(tid, (const void *)(((uintptr_t)addr) + 7));
return *((uint64_t *)addr);
}