⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sem.c

📁 这个是LINUX下的GDB调度工具的源码
💻 C
📖 第 1 页 / 共 5 页
字号:
static SEM_PCSEM_FN_NAME (i960base,setbit3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (SLLSI (1, FLD (f_src1)), FLD (f_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* notand: notand $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,notand) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (* FLD (i_src2)), * FLD (i_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* notand1: notand $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,notand1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (* FLD (i_src2)), FLD (f_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* notand2: notand $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,notand2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (FLD (f_src2)), * FLD (i_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* notand3: notand $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,notand3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (FLD (f_src2)), FLD (f_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xor: xor $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,xor) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = XORSI (* FLD (i_src1), * FLD (i_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xor1: xor $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,xor1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = XORSI (FLD (f_src1), * FLD (i_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xor2: xor $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,xor2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = XORSI (* FLD (i_src1), FLD (f_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xor3: xor $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,xor3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = XORSI (FLD (f_src1), FLD (f_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* or: or $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,or) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (* FLD (i_src1), * FLD (i_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* or1: or $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,or1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (FLD (f_src1), * FLD (i_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* or2: or $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,or2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (* FLD (i_src1), FLD (f_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* or3: or $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,or3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (FLD (f_src1), FLD (f_src2));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* nor: nor $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,nor) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (* FLD (i_src2)), INVSI (* FLD (i_src1)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* nor1: nor $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,nor1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (* FLD (i_src2)), INVSI (FLD (f_src1)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* nor2: nor $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,nor2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (FLD (f_src2)), INVSI (* FLD (i_src1)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* nor3: nor $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,nor3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ANDSI (INVSI (FLD (f_src2)), INVSI (FLD (f_src1)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xnor: xnor $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,xnor) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (XORSI (* FLD (i_src1), * FLD (i_src2)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xnor1: xnor $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,xnor1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (XORSI (FLD (f_src1), * FLD (i_src2)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xnor2: xnor $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,xnor2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (XORSI (* FLD (i_src1), FLD (f_src2)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* xnor3: xnor $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,xnor3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (XORSI (FLD (f_src1), FLD (f_src2)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* not: not $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,not) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (* FLD (i_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* not1: not $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,not1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (FLD (f_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* not2: not $src1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,not2) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul2.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (* FLD (i_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* not3: not $lit1, $lit2, $dst */static SEM_PCSEM_FN_NAME (i960base,not3) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul3.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = INVSI (FLD (f_src1));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* ornot: ornot $src1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,ornot) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul.f  ARGBUF *abuf = SEM_ARGBUF (sem_arg);  int UNUSED written = 0;  IADDR UNUSED pc = abuf->addr;  SEM_PC vpc = SEM_NEXT_VPC (sem_arg, pc, 4);  {    SI opval = ORSI (* FLD (i_src2), INVSI (* FLD (i_src1)));    * FLD (i_dst) = opval;    TRACE_RESULT (current_cpu, abuf, "dst", 'x', opval);  }  return vpc;#undef FLD}/* ornot1: ornot $lit1, $src2, $dst */static SEM_PCSEM_FN_NAME (i960base,ornot1) (SIM_CPU *current_cpu, SEM_ARG sem_arg){#define FLD(f) abuf->fields.sfmt_emul1.f

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -