diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-03-11 00:18:02 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-03-11 00:18:02 +0000 |
commit | 9b175a76d11f555b5c34edfa6e4d014173d94972 (patch) | |
tree | 29bee26ce71a8476f9bd0db08e721d551c9974cc /bfd/elf32-spu.c | |
parent | d6b7435fbef25d96a4e7c6c40099560fc690706d (diff) | |
download | gdb-9b175a76d11f555b5c34edfa6e4d014173d94972.zip gdb-9b175a76d11f555b5c34edfa6e4d014173d94972.tar.gz gdb-9b175a76d11f555b5c34edfa6e4d014173d94972.tar.bz2 |
* elf32-spu.c (find_function_stack_adjust): Handle sf instruction
used to update stack pointer.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r-- | bfd/elf32-spu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 3015cd6..115fa49 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -2133,6 +2133,19 @@ find_function_stack_adjust (asection *sec, return reg[rt]; } } + else if (buf[0] == 0x08 && (buf[1] & 0xe0) == 0 /* sf */) + { + int rb = ((buf[1] & 0x1f) << 2) | ((buf[2] & 0xc0) >> 6); + + reg[rt] = reg[rb] - reg[ra]; + if (rt == 1) + { + if (reg[rt] > 0) + break; + *sp_adjust = offset; + return reg[rt]; + } + } else if ((buf[0] & 0xfc) == 0x40 /* il, ilh, ilhu, ila */) { if (buf[0] >= 0x42 /* ila */) |