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.21 2003/12/09 13:31:43 grubba Exp $ + || $Id: ppc32.h,v 1.22 2003/12/09 17:44:59 grubba 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:236:    __asm__ __volatile__( " mtctr %0\n" \    " mr "PPC_REGNAME(31)",%1\n" \    " bctr" \    : \    : "r" (pc), "r" (&Pike_interpreter) \    : "ctr", "lr", "cc", "memory", "r31", "r0", \    "r3", "r4", "r5", "r6", "r7", "r8", "r9", \    "r10", "r11", "r12")      #define OPCODE_INLINE_BRANCH - #define OPCODE_RETURN_JUMPADDR + /* #define OPCODE_RETURN_JUMPADDR */      #ifdef OPCODE_RETURN_JUMPADDR      /* Don't need an lvalue in this case. */   #define PROG_COUNTER ((INT32 *)__builtin_return_address(0))      #define JUMP_EPILOGUE_SIZE 2   #define JUMP_SET_TO_PC_AT_NEXT(PC) \    ((PC) = PROG_COUNTER + JUMP_EPILOGUE_SIZE)