int MY (f_store_register) (SIM_CPU *current_cpu, int rn, unsigned char *buf, int len ATTRIBUTE_UNUSED) { XCONCAT3(crisv,BASENUM,f_h_gr_set) (current_cpu, rn, GETTSI (buf)); return -1; }
int lm32bf_store_register (SIM_CPU * current_cpu, int rn, unsigned char *buf, int len) { if (rn < 32) lm32bf_h_gr_set (current_cpu, rn, GETTSI (buf)); else switch (rn) { case SIM_LM32_PC_REGNUM: lm32bf_h_pc_set (current_cpu, GETTSI (buf)); break; default: return 0; } return -1; }