Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix PROCESSOR_ flags
authorGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 11:22:51 +0000 (12:22 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Wed, 9 Mar 2016 11:22:51 +0000 (12:22 +0100)
src/mc/mc_unw.cpp
src/simix/RawContext.cpp
tools/cmake/src/internal_config.h.in

index ab43771..b172da9 100644 (file)
@@ -202,7 +202,7 @@ int mc_unw_init_context(
 
   // Take a copy of the context for our own purpose:
   context->context = *c;
 
   // Take a copy of the context for our own purpose:
   context->context = *c;
-#if defined(PROCESSOR_x86_64) || defined(PROCESSOR_i686)
+#if SIMGRID_PROCESSOR_x86_64 || SIMGRID_PROCESSOR_i686
   // On x86_64, ucontext_t contains a pointer to itself for FP registers.
   // We don't really need support for FR registers as they are caller saved
   // and probably never use those fields as libunwind-x86_64 does not read
   // On x86_64, ucontext_t contains a pointer to itself for FP registers.
   // We don't really need support for FR registers as they are caller saved
   // and probably never use those fields as libunwind-x86_64 does not read
index 1ea7806..4405027 100644 (file)
@@ -123,7 +123,7 @@ extern "C" raw_stack_t raw_makecontext(void* malloced_stack, int stack_size,
                                    rawctx_entry_point_t entry_point, void* arg);
 extern "C" void raw_swapcontext(raw_stack_t* old, raw_stack_t new_context);
 
                                    rawctx_entry_point_t entry_point, void* arg);
 extern "C" void raw_swapcontext(raw_stack_t* old, raw_stack_t new_context);
 
-#if PROCESSOR_x86_64
+#if SIMGRID_PROCESSOR_x86_64
 __asm__ (
 #if defined(__APPLE__)
    ".text\n"
 __asm__ (
 #if defined(__APPLE__)
    ".text\n"
@@ -203,7 +203,7 @@ __asm__ (
    "   pop %rdi\n"
    "   ret\n"
 );
    "   pop %rdi\n"
    "   ret\n"
 );
-#elif PROCESSOR_i686
+#elif SIMGRID_PROCESSOR_i686
 __asm__ (
 #if defined(__APPLE__) || defined(_WIN32)
    ".text\n"
 __asm__ (
 #if defined(__APPLE__) || defined(_WIN32)
    ".text\n"
index 20aefcf..817f0fc 100644 (file)
@@ -33,9 +33,8 @@
 #define HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@ /* If __thread is available */
 
 /* Variables for the raw contexts (to select the right assembly code) */
 #define HAVE_THREAD_LOCAL_STORAGE @HAVE_THREAD_LOCAL_STORAGE@ /* If __thread is available */
 
 /* Variables for the raw contexts (to select the right assembly code) */
-#cmakedefine PROCESSOR_i686         @PROCESSOR_i686@
-#cmakedefine PROCESSOR_x86_64       @PROCESSOR_x86_64@
-#cmakedefine CMAKE_SYSTEM_PROCESSOR @CMAKE_SYSTEM_PROCESSOR@
+#define SIMGRID_PROCESSOR_i686         @PROCESSOR_i686@
+#define SIMGRID_PROCESSOR_x86_64       @PROCESSOR_x86_64@
 
 /* Variables for the SysV contexts */
 @sg_makecontext_stack_addr@
 
 /* Variables for the SysV contexts */
 @sg_makecontext_stack_addr@