Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
Archivo: lm32.c Proyecto: 5kg/gdb
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;
}