X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/646748e03f0997e891f569963d0113e16bb63890..e6ca184e99d50d0ee8fe405a83ee5277e2ecfce6:/src/mc/ChunkedData.cpp diff --git a/src/mc/ChunkedData.cpp b/src/mc/ChunkedData.cpp index c1f3e2d4c0..89dc272219 100644 --- a/src/mc/ChunkedData.cpp +++ b/src/mc/ChunkedData.cpp @@ -1,4 +1,19 @@ -#include +/* Copyright (c) 2007-2015. The SimGrid Team. + * All rights reserved. */ + +/* 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 #define SOFT_DIRTY (((uint64_t)1) << SOFT_DIRTY_BIT_NUMBER) @@ -13,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; @@ -29,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");