]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/hexagon: Use argparse in all python scripts
authorAnton Johansson <anjo@rev.ng>
Fri, 6 Dec 2024 16:01:02 +0000 (17:01 +0100)
committerBrian Cain <brian.cain@oss.qualcomm.com>
Fri, 13 Dec 2024 03:43:52 +0000 (21:43 -0600)
commite295796726131ff9c07a53afe2642c53229e6ca3
tree682d88709c99c0e14349abaa1d013e8da8819cba
parentf0db9f5759372d56d65cfb2d05b03285789468bf
target/hexagon: Use argparse in all python scripts

QOL commit, all the various gen_* python scripts take a large set
arguments where order is implicit.  Using argparse we also get decent
error messages if a field is missing or too many are added.

Signed-off-by: Anton Johansson <anjo@rev.ng>
Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
13 files changed:
target/hexagon/gen_analyze_funcs.py
target/hexagon/gen_decodetree.py
target/hexagon/gen_helper_funcs.py
target/hexagon/gen_helper_protos.py
target/hexagon/gen_idef_parser_funcs.py
target/hexagon/gen_op_attribs.py
target/hexagon/gen_opcodes_def.py
target/hexagon/gen_printinsn.py
target/hexagon/gen_tcg_func_table.py
target/hexagon/gen_tcg_funcs.py
target/hexagon/gen_trans_funcs.py
target/hexagon/hex_common.py
target/hexagon/meson.build