supply_register (mips_regnum (current_gdbarch)->pc, (char *) (regp + CXT_EPC)); supply_register (mips_regnum (current_gdbarch)->hi, (char *) (regp + CXT_MDHI)); supply_register (mips_regnum (current_gdbarch)->lo, (char *) (regp + CXT_MDLO)); supply_register (mips_regnum (current_gdbarch)->cause, (char *) (regp + CXT_CAUSE));
regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->pc, (char *) (regp + CXT_EPC)); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->hi, (char *) (regp + CXT_MDHI)); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->lo, (char *) (regp + CXT_MDLO)); regcache_raw_supply (current_regcache, mips_regnum (current_gdbarch)->cause, (char *) (regp + CXT_CAUSE));
supply_gregset (gregset_t *gregsetp){  int regi;  greg_t *regp = &(*gregsetp)[0];  char zerobuf[MAX_REGISTER_SIZE];  memset (zerobuf, 0, MAX_REGISTER_SIZE);  for (regi = 0; regi <= CXT_RA; regi++)    supply_register (regi, (char *) (regp + regi));  supply_register (mips_regnum (current_gdbarch)->pc,		   (char *) (regp + CXT_EPC));  supply_register (mips_regnum (current_gdbarch)->hi,		   (char *) (regp + CXT_MDHI));  supply_register (mips_regnum (current_gdbarch)->lo,		   (char *) (regp + CXT_MDLO));  supply_register (mips_regnum (current_gdbarch)->cause,		   (char *) (regp + CXT_CAUSE));  /* Fill inaccessible registers with zero.  */  supply_register (PS_REGNUM, zerobuf);  supply_register (mips_regnum (current_gdbarch)->badvaddr, zerobuf);  supply_register (DEPRECATED_FP_REGNUM, zerobuf);  supply_register (UNUSED_REGNUM, zerobuf);  for (regi = FIRST_EMBED_REGNUM; regi <= LAST_EMBED_REGNUM; regi++)    supply_register (regi, zerobuf);}