mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-02 14:53:46 +08:00
* am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM.
This commit is contained in:
parent
8d8f91d85a
commit
6093e5b0de
@ -605,9 +605,9 @@ pop_frame ()
|
||||
write_register
|
||||
(SR_REGNUM (i + 128),
|
||||
read_register (LR0_REGNUM + DUMMY_ARG / 4 + i));
|
||||
for (i = 0; i < DUMMY_SAVE_GR96; ++i)
|
||||
for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
|
||||
write_register
|
||||
(GR96_REGNUM + i,
|
||||
(RETURN_REGNUM + i,
|
||||
read_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i));
|
||||
}
|
||||
|
||||
@ -689,7 +689,7 @@ push_dummy_frame ()
|
||||
for (i = 0; i < DUMMY_SAVE_SR128; ++i)
|
||||
write_register (LR0_REGNUM + DUMMY_ARG / 4 + i,
|
||||
read_register (SR_REGNUM (i + 128)));
|
||||
for (i = 0; i < DUMMY_SAVE_GR96; ++i)
|
||||
for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
|
||||
write_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i,
|
||||
read_register (GR96_REGNUM + i));
|
||||
read_register (RETURN_REGNUM + i));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user