diff options
| author | Stafford Horne <shorne@gmail.com> | 2017-01-03 02:15:03 -0500 |
|---|---|---|
| committer | Stafford Horne <shorne@gmail.com> | 2017-02-24 14:30:50 -0500 |
| commit | f72deab378db8eadb6d6eb06b6e2b90c9b681c81 (patch) | |
| tree | f6c0f818bf9653b699a2746fa018d4647bf77427 | |
| parent | 9dfc96d72b879ebda9a0ed830af6aeee0141943d (diff) | |
scripts/checkstack.pl: Add openrisc support
Openrisc stack pointer is managed by decrementing r1. Add regexes to
recognize this.
Signed-off-by: Stafford Horne <shorne@gmail.com>
| -rwxr-xr-x | scripts/checkstack.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index dd8397894d5c..42794348ef35 100755 --- a/scripts/checkstack.pl +++ b/scripts/checkstack.pl | |||
| @@ -78,6 +78,9 @@ my (@stack, $re, $dre, $x, $xs, $funcre); | |||
| 78 | } elsif ($arch eq 'mips') { | 78 | } elsif ($arch eq 'mips') { |
| 79 | #88003254: 27bdffe0 addiu sp,sp,-32 | 79 | #88003254: 27bdffe0 addiu sp,sp,-32 |
| 80 | $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; | 80 | $re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o; |
| 81 | } elsif ($arch eq 'openrisc') { | ||
| 82 | # c000043c: 9c 21 fe f0 l.addi r1,r1,-272 | ||
| 83 | $re = qr/.*l\.addi.*r1,r1,-(([0-9]{2}|[3-9])[0-9]{2})/o; | ||
| 81 | } elsif ($arch eq 'parisc' || $arch eq 'parisc64') { | 84 | } elsif ($arch eq 'parisc' || $arch eq 'parisc64') { |
| 82 | $re = qr/.*ldo ($x{1,8})\(sp\),sp/o; | 85 | $re = qr/.*ldo ($x{1,8})\(sp\),sp/o; |
| 83 | } elsif ($arch eq 'ppc') { | 86 | } elsif ($arch eq 'ppc') { |
