Skip to content

Commit f72deab

Browse files
committed
scripts/checkstack.pl: Add openrisc support
Openrisc stack pointer is managed by decrementing r1. Add regexes to recognize this. Signed-off-by: Stafford Horne <[email protected]>
1 parent 9dfc96d commit f72deab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/checkstack.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
} elsif ($arch eq 'mips') {
7979
#88003254: 27bdffe0 addiu sp,sp,-32
8080
$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;
8184
} elsif ($arch eq 'parisc' || $arch eq 'parisc64') {
8285
$re = qr/.*ldo ($x{1,8})\(sp\),sp/o;
8386
} elsif ($arch eq 'ppc') {

0 commit comments

Comments
 (0)