#include <xbt/base.h>
-#include "mc_mmu.h"
-#include "mc_forward.hpp"
+#include "src/mc/mc_mmu.h"
+#include "src/mc/mc_forward.hpp"
namespace simgrid {
namespace mc {
/** @brief Storage for snapshot memory pages
*
* The first (lower) layer of the per-page snapshot mechanism is a page
- * store: it's responsibility is to store immutable shareable
- * reference-counted memory pages independently of the snapshoting
- * logic. Snapshot management and representation, soft-dirty tracking is
+ * store: its responsibility is to store immutable shareable
+ * reference-counted memory pages independently of the snapshotting
+ * logic. Snapshot management and representation is
* handled to an higher layer. READMORE
*
* Data structure:
inline __attribute__((always_inline))
const void* PageStore::get_page(std::size_t pageno) const
{
- return mc_page_from_number(this->memory_, pageno);
+ return (void*) simgrid::mc::mmu::join(pageno, (std::uintptr_t) this->memory_);
}
inline __attribute__((always_inline))