xbt_assert((((uintptr_t)permanent_addr) & (xbt_pagesize - 1)) == 0,
"Permanent address not at the beginning of a page");
- page_numbers_ =
+ chunks_ =
ChunkedData(mc_model_checker->page_store(), *process, RemotePtr<void>(permanent_addr), mmu::chunk_count(size));
}
void RegionSnapshot::restore()
{
xbt_assert(((permanent_address().address()) & (xbt_pagesize - 1)) == 0, "Not at the beginning of a page");
- xbt_assert(simgrid::mc::mmu::chunk_count(size()) == page_data().page_count());
+ xbt_assert(simgrid::mc::mmu::chunk_count(size()) == chunks().page_count());
- for (size_t i = 0; i != page_data().page_count(); ++i) {
+ for (size_t i = 0; i != chunks().page_count(); ++i) {
void* target_page = (void*)simgrid::mc::mmu::join(i, (std::uintptr_t)(void*)permanent_address().address());
- const void* source_page = page_data().page(i);
+ const void* source_page = chunks().page(i);
mc_model_checker->process().write_bytes(source_page, xbt_pagesize, remote(target_page));
}
}