X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c45a236d5837894e3e9b9ae68d675c8dbc863eb7..dc0b836b646303e8a540d20d9e86ecd4049bb372:/src/mc/ChunkedData.cpp diff --git a/src/mc/ChunkedData.cpp b/src/mc/ChunkedData.cpp index 00f6e31e2b..89dc272219 100644 --- a/src/mc/ChunkedData.cpp +++ b/src/mc/ChunkedData.cpp @@ -4,7 +4,15 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include +#include +#include + +#include // xbt_pagesize and friends +#include + +#include "src/mc/AddressSpace.hpp" #include "src/mc/ChunkedData.hpp" #define SOFT_DIRTY_BIT_NUMBER 55 @@ -20,7 +28,7 @@ namespace mc { * @return Snapshot page numbers of this new snapshot */ ChunkedData::ChunkedData(PageStore& store, AddressSpace& as, - remote_ptr addr, std::size_t page_count, + RemotePtr addr, std::size_t page_count, const std::size_t* ref_page_numbers, const std::uint64_t* pagemap) { store_ = &store; @@ -36,7 +44,7 @@ ChunkedData::ChunkedData(PageStore& store, AddressSpace& as, continue; } - remote_ptr page = remote(addr.address() + (i << xbt_pagebits)); + RemotePtr page = remote(addr.address() + (i << xbt_pagebits)); xbt_assert(mc_page_offset((void*)page.address())==0, "Not at the beginning of a page");