aboutsummaryrefslogtreecommitdiff
path: root/scripts/decodetree.py
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2019-02-23 17:44:31 -0800
committerRichard Henderson <richard.henderson@linaro.org>2019-03-12 09:46:58 -0700
commitcd3e7fc18db43b296f413814cd4b72bcd6878bc4 (patch)
tree9d0bed7f50b99094450636ffd58fa3a2379a369c /scripts/decodetree.py
parentbf92118fa9dda4a425da7f75d43ad7b4df8d5650 (diff)
decodetree: Add --static-decode option
Like --decode, but do not drop 'static' qualifier. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/decodetree.py')
-rwxr-xr-xscripts/decodetree.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index 2711c6ca9e..6067e940ab 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -979,7 +979,8 @@ def main():
decode_scope = 'static '
- long_opts = ['decode=', 'translate=', 'output=', 'insnwidth=']
+ long_opts = ['decode=', 'translate=', 'output=', 'insnwidth=',
+ 'static-decode=']
try:
(opts, args) = getopt.getopt(sys.argv[1:], 'o:w:', long_opts)
except getopt.GetoptError as err:
@@ -990,6 +991,8 @@ def main():
elif o == '--decode':
decode_function = a
decode_scope = ''
+ elif o == '--static-decode':
+ decode_function = a
elif o == '--translate':
translate_prefix = a
translate_scope = ''