* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
This commit is contained in:
parent
c7c7219d3a
commit
e5a6ba44d9
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2009-04-06 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
|
||||||
|
|
||||||
2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
|
2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
|
* ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
|
||||||
|
|
|
@ -141,9 +141,9 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
|
||||||
|
|
||||||
/* The following is true for NetBSD 1.6.2:
|
/* The following is true for NetBSD 1.6.2:
|
||||||
|
|
||||||
The pcb contains %sp and %pc, %psr and %wim. From this information
|
The pcb contains %sp and %pc, %pstate and %cwp. From this
|
||||||
we reconstruct the register state as it would look when we just
|
information we reconstruct the register state as it would look
|
||||||
returned from cpu_switch(). */
|
when we just returned from cpu_switch(). */
|
||||||
|
|
||||||
/* The stack pointer shouldn't be zero. */
|
/* The stack pointer shouldn't be zero. */
|
||||||
if (pcb->pcb_sp == 0)
|
if (pcb->pcb_sp == 0)
|
||||||
|
@ -155,7 +155,6 @@ sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
|
||||||
read_memory(pcb->pcb_sp + BIAS - 176 + (11 * 8),
|
read_memory(pcb->pcb_sp + BIAS - 176 + (11 * 8),
|
||||||
(gdb_byte *)&pcb->pcb_pc, sizeof pcb->pcb_pc);
|
(gdb_byte *)&pcb->pcb_pc, sizeof pcb->pcb_pc);
|
||||||
|
|
||||||
|
|
||||||
regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp);
|
regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp);
|
||||||
regcache_raw_supply (regcache, SPARC64_PC_REGNUM, &pcb->pcb_pc);
|
regcache_raw_supply (regcache, SPARC64_PC_REGNUM, &pcb->pcb_pc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue