pike.git / src / code / ppc32.h

version» Context lines:

pike.git/src/code/ppc32.h:1:   /* -  * $Id: ppc32.h,v 1.1 2001/07/26 21:04:14 marcus Exp $ +  * $Id: ppc32.h,v 1.2 2001/07/30 20:56:28 marcus Exp $    */      #define PIKE_OPCODE_T unsigned INT32    -  + #define LOW_GET_JUMP() (PROG_COUNTER[0]) + #define LOW_SKIPJUMP() (SET_PROG_COUNTER(PROG_COUNTER + 1))   #define PROG_COUNTER (((INT32 **)__builtin_frame_address(1))[2])      #define SET_REG(REG, X) do { \    INT32 val_ = X; \    INT32 reg_ = REG; \    if ((-32768 <= val_) && (val_ <= 32767)) { \    /* addi reg,0,val */ \    add_to_program(0x38000000|(reg_<<21)|(val_ & 0xffff)); \    } else { \    /* addis reg,0,%hi(val) */ \
pike.git/src/code/ppc32.h:55:    rel_, p_->relocations[rel_], \    op_[p_->relocations[rel_]]); \    } \    ); \    op_[p_->relocations[rel_]] = 0x48000000 | \    ((op_[p_->relocations[rel_]] + (delta_<<2)) & \    0x03ffffff); \    } \    } while(0)    + extern void ppc32_flush_instruction_cache(void *addr, size_t len); + #define FLUSH_INSTRUCTION_CACHE ppc32_flush_instruction_cache +    /*   struct dynamic_buffer_s;      void ppc32_encode_program(struct program *p, struct dynamic_buffer_s *buf);   void ppc32_decode_program(struct program *p);      #define ENCODE_PROGRAM(P, BUF) ppc32_encode_program(P, BUF)   #define DECODE_PROGRAM(P) ppc32_decode_program(p)   */