pike.git / src / code / ppc32.h

version» Context lines:

pike.git/src/code/ppc32.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: ppc32.h,v 1.24 2003/12/07 18:35:25 marcus Exp $ + || $Id: ppc32.h,v 1.25 2005/05/24 17:35:26 jonasw Exp $   */      #define PPC_INSTR_B_FORM(OPCD,BO,BI,BD,AA,LK) \    add_to_program(((OPCD)<<26)|((BO)<<21)|((BI)<<16)| \    (((BD)&0x3fff)<<2)|((AA)<<1)|(LK))   #define PPC_INSTR_D_FORM(OPCD,S,A,d) \    add_to_program(((OPCD)<<26)|((S)<<21)|((A)<<16)|((d)&0xffff))   #define PPC_INSTR_I_FORM(OPCD,LI,AA,LK) \    add_to_program(((OPCD)<<26)|((LI)&0x03fffffc)|((AA)<<1)|(LK))   #define PPC_INSTR_M_FORM(OPCD,S,A,SH,MB,ME,Rc) \
pike.git/src/code/ppc32.h:68:      #define PPC_REG_ARG1 3   #define PPC_REG_ARG2 4   #define PPC_REG_ARG3 5      #define PPC_REG_PIKE_PC 7   #define PPC_REG_PIKE_MARK_SP 8   #define PPC_REG_PIKE_FP 9   #define PPC_REG_PIKE_SP 10    - #define PPC_REG_PIKE_INTERP 31 + #define PPC_REG_PIKE_INTERP 29 /* 31 */      extern int ppc32_codegen_state, ppc32_codegen_last_pc;   void ppc32_flush_code_generator_state(void);   #define FLUSH_CODE_GENERATOR_STATE ppc32_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
pike.git/src/code/ppc32.h:227:   #endif      #ifdef PIKE_CPU_REG_PREFIX   #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(31)",%1\n" \ +  " mr "PPC_REGNAME(29)",%1\n" \    " bctr" \    : \    : "r" (pc), "r" (&Pike_interpreter) \ -  : "ctr", "lr", "cc", "memory", "r31", "r0", \ +  : "ctr", "lr", "cc", "memory", "r29", "r0", \    "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. */   #define PROG_COUNTER ((INT32 *)__builtin_return_address(0))