Branch: Tag:

2018-05-23

2018-05-23 19:35:06 by Marcus Comstedt <marcus@mc.pp.se>

[ppc32/ppc64] Enable OPCODE_INLINE_RETURN

30:   #define BC(BO,BI,BD) PPC_INSTR_B_FORM(16,BO,BI,BD,0,0)      #define CMPLI(crfD,A,UIMM) PPC_INSTR_D_FORM(10,crfD,A,UIMM) + #define CMPI(crfD,A,UIMM) PPC_INSTR_D_FORM(11,crfD,A,UIMM)   #define ADDIC(D,A,SIMM) PPC_INSTR_D_FORM(12,D,A,SIMM)   #define ADDI(D,A,SIMM) PPC_INSTR_D_FORM(14,D,A,SIMM)   #define ADDIS(D,A,SIMM) PPC_INSTR_D_FORM(15,D,A,SIMM)
42:   #define LD(D,A,ds) PPC_INSTR_DS_FORM(58,D,A,ds,0)   #define LDU(D,A,ds) PPC_INSTR_DS_FORM(58,D,A,ds,1)   #define STD(S,A,ds) PPC_INSTR_DS_FORM(62,S,A,ds,0) + #define STDU(S,A,ds) PPC_INSTR_DS_FORM(62,S,A,ds,1)      #define RLWINM(S,A,SH,MB,ME) PPC_INSTR_M_FORM(21,S,A,SH,MB,ME,0)   #define RLDICL(S,A,SH,MB) PPC_INSTR_MD_FORM(30,S,A,SH,MB,0,0)
272:   #define CALL_MACHINE_CODE(pc) \    __asm__ __volatile__( " mtctr %0\n" \    " mr "PPC_REGNAME(29)",%1\n" \ -  " bctr" \ +  " bctrl" \    : \    : "r" (pc), "r" (Pike_interpreter_pointer) \    : "ctr", "lr", "cc", "memory", "r29", "r0", "r2", \
281:      #define OPCODE_INLINE_BRANCH   #define OPCODE_RETURN_JUMPADDR + #define OPCODE_INLINE_RETURN      #ifdef OPCODE_RETURN_JUMPADDR   
306:   #endif /* !OPCODE_RETURN_JUMPADDR */       + #ifdef OPCODE_INLINE_RETURN +  + /* Size of the prologue added by INS_ENTRY() (in PIKE_OPCODE_T's). */ + #define ENTRY_PROLOGUE_SIZE 3 +  + void ppc64_ins_entry(void); + #define INS_ENTRY() ppc64_ins_entry() +  + #endif /* OPCODE_INLINE_RETURN */ +  +    #ifdef PIKE_DEBUG   void ppc64_disassemble_code(void *addr, size_t bytes);   #define DISASSEMBLE_CODE(ADDR, BYTES) ppc64_disassemble_code(ADDR, BYTES)   #endif