mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
tools/checkstack.pl: Add riscv arch support
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I8a7b51e1b75aee4bab42e85b1266e94c578c60f1
This commit is contained in:
@@ -108,6 +108,9 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack);
|
||||
} elsif ($arch eq 'sparc' || $arch eq 'sparc64') {
|
||||
# f0019d10: 9d e3 bf 90 save %sp, -112, %sp
|
||||
$re = qr/.*save.*%sp, -(([0-9]{2}|[3-9])[0-9]{2}), %sp/o;
|
||||
} elsif ($arch eq 'riscv') {
|
||||
# 23002fd0: 11 41 addi sp, sp, -16
|
||||
$re = qr/.*addi.*sp,sp,-([0-9]{1,4})/o;
|
||||
} else {
|
||||
print("wrong or unknown architecture \"$arch\"\n");
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user