int MY (f_fetch_register) (SIM_CPU *current_cpu, int rn, unsigned char *buf, int len ATTRIBUTE_UNUSED) { SETTSI (buf, XCONCAT3(crisv,BASENUM,f_h_gr_get) (current_cpu, rn)); return -1; }
int lm32bf_fetch_register (SIM_CPU * current_cpu, int rn, unsigned char *buf, int len) { if (rn < 32) SETTSI (buf, lm32bf_h_gr_get (current_cpu, rn)); else switch (rn) { case SIM_LM32_PC_REGNUM: SETTSI (buf, lm32bf_h_pc_get (current_cpu)); break; default: return 0; } return -1; }