OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_58/] [or1ksim/] [cpu/] [or32/] [insnset.c] - Diff between revs 1321 and 1338

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1321 Rev 1338
Line 510... Line 510...
}
}
INSTRUCTION (l_cmov) {
INSTRUCTION (l_cmov) {
  IFF (config.cpu.dependstats) current->func_unit = it_move;
  IFF (config.cpu.dependstats) current->func_unit = it_move;
  set_operand32(0, flag ? eval_operand32(1, &breakpoint) : eval_operand32(2, &breakpoint), &breakpoint);
  set_operand32(0, flag ? eval_operand32(1, &breakpoint) : eval_operand32(2, &breakpoint), &breakpoint);
}
}
 
INSTRUCTION (l_ff1) {
 
  IFF (config.cpu.dependstats) current->func_unit = it_arith;
 
  set_operand32(0, ffs((unsigned long)eval_operand32(1, &breakpoint)) , &breakpoint);
 
}
/******* Floating point instructions *******/
/******* Floating point instructions *******/
/* Single precision */
/* Single precision */
INSTRUCTION (lf_add_s) {
INSTRUCTION (lf_add_s) {
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  IFF (config.cpu.dependstats) current->func_unit = it_float;
  set_operand32(0, (machword)((float)eval_operand32(1, &breakpoint) + (float)eval_operand32(2, &breakpoint)), &breakpoint);
  set_operand32(0, (machword)((float)eval_operand32(1, &breakpoint) + (float)eval_operand32(2, &breakpoint)), &breakpoint);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.