mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* m88k-nat.c (fill_gregset): Set r31 and sfip.
This commit is contained in:
parent
9d719a9cf9
commit
00dff7538a
@ -255,7 +255,7 @@ fill_gregset (gregsetp, regno)
|
||||
register greg_t *regp = (greg_t *) gregsetp;
|
||||
extern char registers[];
|
||||
|
||||
for (regi = 0 ; regi < R_R31 ; regi++)
|
||||
for (regi = 0 ; regi <= R_R31 ; regi++)
|
||||
if ((regno == -1) || (regno == regi))
|
||||
*(regp + regi) = *(int *) ®isters[REGISTER_BYTE(regi)];
|
||||
|
||||
@ -264,7 +264,7 @@ fill_gregset (gregsetp, regno)
|
||||
if ((regno == -1) || (regno == SNIP_REGNUM))
|
||||
*(regp + R_NIP) = *(int *) ®isters[REGISTER_BYTE(SNIP_REGNUM)];
|
||||
if ((regno == -1) || (regno == SFIP_REGNUM))
|
||||
*(regp + R_PSR) = *(int *) ®isters[REGISTER_BYTE(PSR_REGNUM)];
|
||||
*(regp + R_SFIP) = *(int *) ®isters[REGISTER_BYTE(SFIP_REGNUM)];
|
||||
if ((regno == -1) || (regno == PSR_REGNUM))
|
||||
*(regp + R_PSR) = *(int *) ®isters[REGISTER_BYTE(PSR_REGNUM)];
|
||||
if ((regno == -1) || (regno == FPSR_REGNUM))
|
||||
|
Loading…
Reference in New Issue
Block a user