The pcb contains %sp, %sp, %psr and %wim.  From this information
The pcb contains %sp, %pc, %psr and %wim.  From this information
sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb){  /* The following is true for NetBSD 1.6.2:     The pcb contains %sp, %sp, %psr and %wim.  From this information     we reconstruct the register state as it would look when we just     returned from cpu_switch().  */  /* The stack pointer shouldn't be zero.  */  if (pcb->pcb_sp == 0)    return 0;  regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp);  regcache_raw_supply (regcache, SPARC_O7_REGNUM, &pcb->pcb_pc);  regcache_raw_supply (regcache, SPARC32_PSR_REGNUM, &pcb->pcb_psr);  regcache_raw_supply (regcache, SPARC32_WIM_REGNUM, &pcb->pcb_wim);  regcache_raw_supply (regcache, SPARC32_PC_REGNUM, &pcb->pcb_pc);  sparc_supply_rwindow (regcache, pcb->pcb_sp, -1);  return 1;}