Skip to content
Snippets Groups Projects
Commit 4ed4994f authored by an7s's avatar an7s
Browse files

Add support for structured stack auto-initialization

Former-commit-id: b3432f6a05bc38118c81300e894a84f8a402b9e9
parent 221d303a
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ structured_noc=0
structured_nog=0
structured_nos=0
structured_ds=0
structured_stack_init=0 # auto stack initialize
config_name="unspecified"
backend="strata"
......@@ -62,6 +63,8 @@ do
# this option is for cfar, handle it and remove it from the ps_analyze arguments.
elif [ "$i" == "--structured_ds" ]; then
structured_ds=1
elif [ "$i" == "--structured_stack_init" ]; then
structured_stack_init=1
# this option is for cfar, handle it and remove it from the ps_analyze arguments.
elif [ "$i" == "--config_name" ]; then
seq=$(expr $seq + 1)
......@@ -154,6 +157,15 @@ do
per_variant_options+=(--step-option duck_season:"--barrier $sharepath_key")
fi
if [ $structured_stack_init -eq 1 ]; then
# check even/odd status of variant number.
if [ $(expr ${seq} % 2) = 0 ]; then
per_variant_options+=(--step-option stack_initialize:"--initvalue 0x00000000")
else
per_variant_options+=(--step-option stack_initialize:"--initvalue 0xffffffff")
fi
fi
# options to stack_stamp to create non-overlapping stamps
if [ $structured_stack_stamp -eq 1 ]; then
# check even/odd status of variant number.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment