pike.git / src / code / ppc32.h

version» Context lines:

pike.git/src/code/ppc32.h:1:   /* -  * $Id: ppc32.h,v 1.7 2001/08/16 00:28:30 marcus Exp $ +  * $Id: ppc32.h,v 1.8 2001/08/16 18:51:10 marcus Exp $    */      #define PIKE_OPCODE_T unsigned INT32      #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_M_FORM(OPCD,S,A,SH,MB,ME,Rc) \
pike.git/src/code/ppc32.h:113:    STW(0, PPC_REG_PIKE_FP, OFFSETOF(pike_frame, pc)); \    } while(0)      #define ins_pointer(PTR) add_to_program((INT32)(PTR))   #define read_pointer(OFF) (Pike_compiler->new_program->program[(INT32)(OFF)])   #define upd_pointer(OFF,PTR) (Pike_compiler->new_program->program[(INT32)(OFF)] = (INT32)(PTR))   #define ins_align(ALIGN)   #define ins_byte(VAL) add_to_program((INT32)(VAL))   #define ins_data(VAL) add_to_program((INT32)(VAL))    + INT32 ppc32_ins_f_jump(unsigned int b); + void ppc32_update_f_jump(INT32 offset, INT32 to_offset); + INT32 ppc32_read_f_jump(INT32 offset); + #define INS_F_JUMP ppc32_ins_f_jump + #define UPDATE_F_JUMP ppc32_update_f_jump + #define READ_F_JUMP ppc32_read_f_jump +    #define READ_INCR_BYTE(PC) (((PC)++)[0])      #if 0   #define RELOCATE_program(P, NEW) do { \    PIKE_OPCODE_T *op_ = NEW; \    struct program *p_ = P; \    size_t rel_ = p_->num_relocations; \    INT32 delta_ = p_->program - op_; \    while (rel_--) { \    DO_IF_DEBUG( \