pike.git / src / code / ppc64.h

version» Context lines:

pike.git/src/code/ppc64.h:111:   void ppc64_flush_code_generator_state(void);   #define FLUSH_CODE_GENERATOR_STATE ppc64_flush_code_generator_state      #define PPC_CODEGEN_FP_ISSET 1   #define PPC_CODEGEN_SP_ISSET 2   #define PPC_CODEGEN_SP_NEEDSSTORE 4   #define PPC_CODEGEN_MARK_SP_ISSET 8   #define PPC_CODEGEN_MARK_SP_NEEDSSTORE 16   #define PPC_CODEGEN_PC_ISSET 32    - #define LOAD_FP_REG() do { \ -  if(!(ppc64_codegen_state & PPC_CODEGEN_FP_ISSET)) { \ -  /* ld pike_fp,frame_pointer(pike_interpreter) */ \ -  LD(PPC_REG_PIKE_FP, PPC_REG_PIKE_INTERP, \ -  OFFSETOF(Pike_interpreter, frame_pointer)); \ -  ppc64_codegen_state |= PPC_CODEGEN_FP_ISSET; \ -  } \ + #define LOAD_FP_REG() do { \ +  if(!(ppc64_codegen_state & PPC_CODEGEN_FP_ISSET)) { \ +  /* ld pike_fp,frame_pointer(pike_interpreter) */ \ +  LD(PPC_REG_PIKE_FP, PPC_REG_PIKE_INTERP, \ +  OFFSETOF(Pike_interpreter_struct, frame_pointer)); \ +  ppc64_codegen_state |= PPC_CODEGEN_FP_ISSET; \ +  } \    } while(0)    - #define LOAD_SP_REG() do { \ -  if(!(ppc64_codegen_state & PPC_CODEGEN_SP_ISSET)) { \ -  /* ld pike_sp,stack_pointer(pike_interpreter) */ \ -  LD(PPC_REG_PIKE_SP, PPC_REG_PIKE_INTERP, \ -  OFFSETOF(Pike_interpreter, stack_pointer)); \ -  ppc64_codegen_state |= PPC_CODEGEN_SP_ISSET; \ -  } \ + #define LOAD_SP_REG() do { \ +  if(!(ppc64_codegen_state & PPC_CODEGEN_SP_ISSET)) { \ +  /* ld pike_sp,stack_pointer(pike_interpreter) */ \ +  LD(PPC_REG_PIKE_SP, PPC_REG_PIKE_INTERP, \ +  OFFSETOF(Pike_interpreter_struct, stack_pointer)); \ +  ppc64_codegen_state |= PPC_CODEGEN_SP_ISSET; \ +  } \    } while(0)      #define LOAD_MARK_SP_REG() do { \    if(!(ppc64_codegen_state & PPC_CODEGEN_MARK_SP_ISSET)) { \    /* ld pike_mark_sp,mark_stack_pointer(pike_interpreter) */ \    LD(PPC_REG_PIKE_MARK_SP, PPC_REG_PIKE_INTERP, \ -  OFFSETOF(Pike_interpreter, mark_stack_pointer)); \ +  OFFSETOF(Pike_interpreter_struct, mark_stack_pointer)); \    ppc64_codegen_state |= PPC_CODEGEN_MARK_SP_ISSET; \    } \    } while(0)      #define INCR_SP_REG(n) do { \    /* addi pike_sp,pike_sp,n */ \    ADDI(PPC_REG_PIKE_SP, PPC_REG_PIKE_SP, n); \    ppc64_codegen_state |= PPC_CODEGEN_SP_NEEDSSTORE; \    } while(0)   
pike.git/src/code/ppc64.h:261:   #define PPC_REGNAME(n) PIKE_CPU_REG_PREFIX #n   #else   #define PPC_REGNAME(n) #n   #endif      #define CALL_MACHINE_CODE(pc) \    __asm__ __volatile__( " mtctr %0\n" \    " mr "PPC_REGNAME(29)",%1\n" \    " bctr" \    : \ -  : "r" (pc), "r" (&Pike_interpreter) \ +  : "r" (pc), "r" (Pike_interpreter_pointer) \    : "ctr", "lr", "cc", "memory", "r29", "r0", "r2", \    "r3", "r4", "r5", "r6", "r7", "r8", "r9", \    "r10", "r11", "r12")      #define OPCODE_INLINE_BRANCH   #define OPCODE_RETURN_JUMPADDR      #ifdef OPCODE_RETURN_JUMPADDR      /* Don't need an lvalue in this case. */