From 02b3c5ad705e18f100d4cc600f0b618a938e526e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 2 Sep 2021 14:19:41 +0800 Subject: [PATCH] tools/checkstack.pl: Support thumb2 function prologue Signed-off-by: Xiang Xiao Change-Id: Ie4fc9e39f4ef3490013425d2c8444a53d4ab6568 --- tools/checkstack.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/checkstack.pl b/tools/checkstack.pl index d2c38584ece..24d6d422e1b 100755 --- a/tools/checkstack.pl +++ b/tools/checkstack.pl @@ -115,12 +115,12 @@ my (@stack, $re, $dre, $sub, $x, $xs, $funcre, $min_stack); } # -# To count stack usage of push {*, fp, ip, lr, pc} instruction in ARM, +# To count stack usage of push {*} instruction in ARM, # if FRAME POINTER is enabled. # e.g. c01f0d48: e92ddff0 push {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc} # sub arm_push_handling { - my $regex = qr/.*push.*fp, ip, lr, pc}/o; + my $regex = qr/.*push.*}/o; my $size = 0; my $line_arg = shift;