void* temp = NULL;
if (!is_self)
- temp = malloc(xbt_pagebits);
+ temp = malloc(xbt_pagesize);
for (size_t i=0; i!=page_count; ++i) {
bool softclean = pagemap && !(pagemap[i] & SOFT_DIRTY);
- move the segments in shared memory (this will break `fork` however).
*/
page_data = temp;
- MC_process_read(process, temp, page, xbt_pagesize);
+ MC_process_read(process, MC_ADDRESS_SPACE_READ_FLAGS_NONE,
+ temp, page, xbt_pagesize, MC_PROCESS_INDEX_DISABLED);
}
pagenos[i] = mc_model_checker->pages->store_page(page_data);
}