X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/611d822b02f836d7abe031cced6adc4281ef4356..7176085f1a329f1ad90b37aec14a424ec008e4a6:/src/mc/mc_mmu.hpp diff --git a/src/mc/mc_mmu.hpp b/src/mc/mc_mmu.hpp index 34e71e4e09..bb4d900e9f 100644 --- a/src/mc/mc_mmu.hpp +++ b/src/mc/mc_mmu.hpp @@ -6,10 +6,18 @@ #ifndef SIMGRID_MC_MMU_HPP #define SIMGRID_MC_MMU_HPP -#include "xbt/misc.h" // xbt_pagesize... #include #include +#ifndef XBT_ALWAYS_INLINE +#define XBT_ALWAYS_INLINE inline __attribute__((always_inline)) +#endif + +/** Cache the size of a memory page for the current system. */ +extern "C" int xbt_pagesize; +/** Cache the number of bits of addresses inside a given page, log2(xbt_pagesize). */ +extern "C" int xbt_pagebits; + namespace simgrid { namespace mc { // TODO, do not depend on xbt_pagesize/xbt_pagebits but our own chunk size