Branch: Tag:

2006-07-06

2006-07-06 16:14:18 by Marcus Comstedt <marcus@mc.pp.se>

PROG_COUNTER is now a pointer to PIKE_OPCODE_T, as Skuld intended.

Rev: src/code/ppc32.h:1.28

2:   || 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.27 2005/11/21 10:38:22 grubba Exp $ + || $Id: ppc32.h,v 1.28 2006/07/06 16:14:18 marcus Exp $   */      #define PPC_INSTR_B_FORM(OPCD,BO,BI,BD,AA,LK) \
43:   #define BL(LI) PPC_INSTR_I_FORM(18,LI,0,1)   #define BLA(LI) PPC_INSTR_I_FORM(18,LI,1,1)    - #define LOW_GET_JUMP() (PROG_COUNTER[JUMP_EPILOGUE_SIZE]) + #define LOW_GET_JUMP() ((INT32)PROG_COUNTER[JUMP_EPILOGUE_SIZE])   #define LOW_SKIPJUMP() (SET_PROG_COUNTER(PROG_COUNTER + JUMP_EPILOGUE_SIZE + 1))      #define SET_REG(REG, X) do { \
249: Inside #if defined(OPCODE_RETURN_JUMPADDR)
  #ifdef OPCODE_RETURN_JUMPADDR      /* Don't need an lvalue in this case. */ - #define PROG_COUNTER ((INT32 *)__builtin_return_address(0)) + #define PROG_COUNTER ((PIKE_OPCODE_T *)__builtin_return_address(0))      #define JUMP_EPILOGUE_SIZE 2   #define JUMP_SET_TO_PC_AT_NEXT(PC) \
259: Inside #if defined(__linux)
     #ifdef __linux   /* SVR4 ABI */ - #define PROG_COUNTER (((INT32 **)__builtin_frame_address(1))[1]) + #define PROG_COUNTER (((PIKE_OPCODE_T **)__builtin_frame_address(1))[1])   #else   /* PowerOpen ABI */ - #define PROG_COUNTER (((INT32 **)__builtin_frame_address(1))[2]) + #define PROG_COUNTER (((PIKE_OPCODE_T **)__builtin_frame_address(1))[2])   #endif      #define JUMP_EPILOGUE_SIZE 0