mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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>
This commit is contained in:
parent
9dfc96d72b
commit
f72deab378
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ my (@stack, $re, $dre, $x, $xs, $funcre);
|
||||||
} elsif ($arch eq 'mips') {
|
} elsif ($arch eq 'mips') {
|
||||||
#88003254: 27bdffe0 addiu sp,sp,-32
|
#88003254: 27bdffe0 addiu sp,sp,-32
|
||||||
$re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
|
$re = qr/.*addiu.*sp,sp,-(([0-9]{2}|[3-9])[0-9]{2})/o;
|
||||||
|
} elsif ($arch eq 'openrisc') {
|
||||||
|
# c000043c: 9c 21 fe f0 l.addi r1,r1,-272
|
||||||
|
$re = qr/.*l\.addi.*r1,r1,-(([0-9]{2}|[3-9])[0-9]{2})/o;
|
||||||
} elsif ($arch eq 'parisc' || $arch eq 'parisc64') {
|
} elsif ($arch eq 'parisc' || $arch eq 'parisc64') {
|
||||||
$re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
|
$re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
|
||||||
} elsif ($arch eq 'ppc') {
|
} elsif ($arch eq 'ppc') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue