diff mbox series

[v3,08/12] decodetree: Add --static-decode option

Message ID 20190307185622.29026-9-richard.henderson@linaro.org
State Superseded
Headers show
Series decodetree enhacements | expand

Commit Message

Richard Henderson March 7, 2019, 6:56 p.m. UTC
Like --decode, but do not drop 'static' qualifier.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 scripts/decodetree.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.17.2
diff mbox series

Patch

diff --git a/scripts/decodetree.py b/scripts/decodetree.py
index c4e8cb52f7..d6f94d902f 100755
--- a/scripts/decodetree.py
+++ b/scripts/decodetree.py
@@ -976,7 +976,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:
@@ -987,6 +988,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 = ''