supply_register (mips_regnum (current_gdbarch)->pc, (char *) (regp + CTX_EPC) + gregoff); supply_register (mips_regnum (current_gdbarch)->hi, (char *) (regp + CTX_MDHI) + gregoff); supply_register (mips_regnum (current_gdbarch)->lo, (char *) (regp + CTX_MDLO) + gregoff); supply_register (mips_regnum (current_gdbarch)->cause, (char *) (regp + CTX_CAUSE) + gregoff);
regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->pc, (char *) (regp + CTX_EPC) + gregoff); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->hi, (char *) (regp + CTX_MDHI) + gregoff); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->lo, (char *) (regp + CTX_MDLO) + gregoff); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->cause, (char *) (regp + CTX_CAUSE) + gregoff);
supply_gregset (gregset_t *gregsetp){  int regi;  greg_t *regp = &(*gregsetp)[0];  int gregoff = sizeof (greg_t) - mips_regsize (current_gdbarch);  static char zerobuf[32] = {0};  for (regi = 0; regi <= CTX_RA; regi++)    supply_register (regi, (char *) (regp + regi) + gregoff);  supply_register (mips_regnum (current_gdbarch)->pc,		   (char *) (regp + CTX_EPC) + gregoff);  supply_register (mips_regnum (current_gdbarch)->hi,		   (char *) (regp + CTX_MDHI) + gregoff);  supply_register (mips_regnum (current_gdbarch)->lo,		   (char *) (regp + CTX_MDLO) + gregoff);  supply_register (mips_regnum (current_gdbarch)->cause,		   (char *) (regp + CTX_CAUSE) + gregoff);  /* Fill inaccessible registers with zero.  */  supply_register (mips_regnum (current_gdbarch)->badvaddr, zerobuf);}