X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/27f768c6fbe663c6de000473c44a61222b77d481..b193c425928081a5534a14fb22501b24f7aac48a:/src/mc/ChunkedData.cpp diff --git a/src/mc/ChunkedData.cpp b/src/mc/ChunkedData.cpp index 89dc272219..8d5a8e0c7b 100644 --- a/src/mc/ChunkedData.cpp +++ b/src/mc/ChunkedData.cpp @@ -14,6 +14,7 @@ #include "src/mc/AddressSpace.hpp" #include "src/mc/ChunkedData.hpp" +#include "src/mc/PageStore.hpp" #define SOFT_DIRTY_BIT_NUMBER 55 #define SOFT_DIRTY (((uint64_t)1) << SOFT_DIRTY_BIT_NUMBER) @@ -44,8 +45,9 @@ ChunkedData::ChunkedData(PageStore& store, AddressSpace& as, continue; } - RemotePtr page = remote(addr.address() + (i << xbt_pagebits)); - xbt_assert(mc_page_offset((void*)page.address())==0, + RemotePtr page = remote((void*) + simgrid::mc::mmu::join(i, addr.address())); + xbt_assert(simgrid::mc::mmu::split(page.address()).second == 0, "Not at the beginning of a page"); /* Adding another copy (and a syscall) will probably slow things a lot.