Spike, a RISC-V ISA Simulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
191 B

reg_t val;
switch(insn.rtype.rb)
{
case 1:
val = 32; // synci_step
break;
case 29:
val = tid;
break;
default:
val = -1;
}
RC = gprlen == 64 ? val : sext32(val);