[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v1 42/43] target/hexagon: Only translate w. idef-parser if he
From: |
Anton Johansson |
Subject: |
[RFC PATCH v1 42/43] target/hexagon: Only translate w. idef-parser if helper-to-tcg failed |
Date: |
Thu, 21 Nov 2024 02:49:46 +0100 |
Only generate input functions to idef-parser for instructions which
failed to be translated by helper-to-tcg.
Signed-off-by: Anton Johansson <anjo@rev.ng>
---
target/hexagon/gen_idef_parser_funcs.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/target/hexagon/gen_idef_parser_funcs.py
b/target/hexagon/gen_idef_parser_funcs.py
index 2f6e826f76..08ae94a646 100644
--- a/target/hexagon/gen_idef_parser_funcs.py
+++ b/target/hexagon/gen_idef_parser_funcs.py
@@ -49,10 +49,13 @@ def main():
)
parser.add_argument("semantics", help="semantics file")
parser.add_argument("out", help="output file")
+ parser.add_argument("--helper-to-tcg", help="file of instructions
translated by helper-to-tcg")
args = parser.parse_args()
hex_common.read_semantics_file(args.semantics)
hex_common.calculate_attribs()
hex_common.init_registers()
+ if args.helper_to_tcg:
+ hex_common.read_helper_to_tcg_enabled_file(args.helper_to_tcg)
tagregs = hex_common.get_tagregs()
tagimms = hex_common.get_tagimms()
@@ -60,6 +63,9 @@ def main():
f.write('#include "macros.h.inc"\n\n')
for tag in hex_common.tags:
+ ## Skip instructions translated by helper-to-tcg
+ if hex_common.is_helper_to_tcg_enabled(tag):
+ continue
## Skip the priv instructions
if "A_PRIV" in hex_common.attribdict[tag]:
continue
--
2.45.2
- [RFC PATCH v1 35/43] target/hexagon: Use argparse in all python scripts, (continued)
- [RFC PATCH v1 35/43] target/hexagon: Use argparse in all python scripts, Anton Johansson, 2024/11/20
- [RFC PATCH v1 33/43] helper-to-tcg: Add end-to-end tests, Anton Johansson, 2024/11/20
- [RFC PATCH v1 32/43] helper-to-tcg: Add README, Anton Johansson, 2024/11/20
- [RFC PATCH v1 31/43] helper-to-tcg: Introduce TcgGenPass, Anton Johansson, 2024/11/20
- [RFC PATCH v1 30/43] helper-to-tcg: TcgGenPass, introduce TcgEmit.[cpp|h], Anton Johansson, 2024/11/20
- [RFC PATCH v1 34/43] target/hexagon: Add get_tb_mmu_index(), Anton Johansson, 2024/11/20
- [RFC PATCH v1 37/43] target/hexagon: Make HVX vector args. restrict *, Anton Johansson, 2024/11/20
- [RFC PATCH v1 41/43] target/hexagon: Manually call generated HVX instructions, Anton Johansson, 2024/11/20
- [RFC PATCH v1 42/43] target/hexagon: Only translate w. idef-parser if helper-to-tcg failed,
Anton Johansson <=
- Re: [RFC PATCH v1 00/43] Introduce helper-to-tcg, Philippe Mathieu-Daudé, 2024/11/25