pike.git / src / code / ppc32.h

version» Context lines:

pike.git/src/code/ppc32.h:1:   /* -  * $Id: ppc32.h,v 1.13 2002/05/11 10:47:07 mast Exp $ +  * $Id: ppc32.h,v 1.14 2002/08/15 14:50:24 marcus 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_M_FORM(OPCD,S,A,SH,MB,ME,Rc) \    add_to_program(((OPCD)<<26)|((S)<<21)|((A)<<16)|((SH)<<11)| \    ((MB)<<6)|((ME)<<1)|(Rc))
pike.git/src/code/ppc32.h:174:   #if 0   #define RELOCATE_program(P, NEW) do { \    PIKE_OPCODE_T *op_ = NEW; \    struct program *p_ = P; \    size_t rel_ = p_->num_relocations; \    INT32 disp_, delta_ = p_->program - op_; \    while (rel_--) { \    DO_IF_DEBUG( \    if ((op_[p_->relocations[rel_]] & 0xfc000002) != \    0x48000000) { \ -  fatal("Bad relocation: %d, off:%d, opcode: 0x%08x\n", \ +  Pike_fatal("Bad relocation: %d, off:%d, opcode: 0x%08x\n", \    rel_, p_->relocations[rel_], \    op_[p_->relocations[rel_]]); \    } \    ); \    disp_ = op_[p_->relocations[rel_]] & 0x03ffffff; \    if(disp_ & 0x02000000) \    disp_ -= 0x04000000; \    disp_ += delta_ << 2; \    if(disp_ < -33554432 || disp_ > 33554431) \ -  fatal("Relocation %d out of range!\n", disp_); \ +  Pike_fatal("Relocation %d out of range!\n", disp_); \    op_[p_->relocations[rel_]] = 0x48000000 | \    (disp_ & 0x03ffffff); \    } \    } while(0)   #endif      extern void ppc32_flush_instruction_cache(void *addr, size_t len);   #define FLUSH_INSTRUCTION_CACHE ppc32_flush_instruction_cache      #if 0