pike.git / src / code / sparc.c

version» Context lines:

pike.git/src/code/sparc.c:1:   /* -  * $Id: sparc.c,v 1.4 2001/07/20 19:44:59 grubba Exp $ +  * $Id: sparc.c,v 1.5 2001/07/20 22:45:19 grubba Exp $    *    * Machine code generator for sparc.    *    * Henrik Grubbström 20010720    */      #define ADD_CALL(X, DELAY_OK) do { \    INT32 delta_; \    struct program *p_ = Pike_compiler->new_program; \    INT32 off_ = p_->num_program; \
pike.git/src/code/sparc.c:55:    ADD_CALL(instrs[b].address, delay_ok);   }      void ins_f_byte(unsigned int opcode)   {    low_ins_f_byte(opcode, 0);   }      void ins_f_byte_with_arg(unsigned int a,unsigned INT32 b)   { -  SET_REG(REG_O0, b); +  SET_REG(SPARC_REG_O0, b);    low_ins_f_byte(a, 1);    return;   }      void ins_f_byte_with_2_args(unsigned int a,    unsigned INT32 c,    unsigned INT32 b)   { -  SET_REG(REG_O0, c); -  SET_REG(REG_O1, b); +  SET_REG(SPARC_REG_O0, c); +  SET_REG(SPARC_REG_O1, b);    low_ins_f_byte(a, 1);    return;   }      #define addstr(s, l) low_my_binary_strcat((s), (l), buf)   #define adddata2(s,l) addstr((char *)(s),(l) * sizeof((s)[0]));      void sparc_encode_program(struct program *p, struct dynamic_buffer_s *buf)   {    size_t prev = 0, rel;