]> git.proxmox.com Git - mirror_qemu.git/commitdiff
decodetree: Add --static-decode option
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 24 Feb 2019 01:44:31 +0000 (17:44 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 12 Mar 2019 16:46:58 +0000 (09:46 -0700)
Like --decode, but do not drop 'static' qualifier.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
scripts/decodetree.py

index 2711c6ca9e15418806107f579e5c2bff6e6f1e3b..6067e940abdda13048eab230b8b2992ee2e6dda8 100755 (executable)
@@ -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 = ''