mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-20 12:07:57 +00:00
decodetree: Add --static-decode option
Like --decode, but do not drop 'static' qualifier. Backports commit cd3e7fc18db43b296f413814cd4b72bcd6878bc4 from qemu
This commit is contained in:
parent
c8514cc538
commit
190ee1657b
|
@ -1115,7 +1115,8 @@ def main():
|
||||||
|
|
||||||
decode_scope = 'static '
|
decode_scope = 'static '
|
||||||
|
|
||||||
long_opts = ['decode=', 'translate=', 'output=', 'insnwidth=']
|
long_opts = ['decode=', 'translate=', 'output=', 'insnwidth=',
|
||||||
|
'static-decode=']
|
||||||
try:
|
try:
|
||||||
(opts, args) = getopt.getopt(sys.argv[1:], 'o:w:', long_opts)
|
(opts, args) = getopt.getopt(sys.argv[1:], 'o:w:', long_opts)
|
||||||
except getopt.GetoptError as err:
|
except getopt.GetoptError as err:
|
||||||
|
@ -1126,6 +1127,8 @@ def main():
|
||||||
elif o == '--decode':
|
elif o == '--decode':
|
||||||
decode_function = a
|
decode_function = a
|
||||||
decode_scope = ''
|
decode_scope = ''
|
||||||
|
elif o == '--static-decode':
|
||||||
|
decode_function = a
|
||||||
elif o == '--translate':
|
elif o == '--translate':
|
||||||
translate_prefix = a
|
translate_prefix = a
|
||||||
translate_scope = ''
|
translate_scope = ''
|
||||||
|
|
Loading…
Reference in a new issue