OSDN Git Service

Hexagon (target/hexagon) Don't set pkt_has_store_s1 when not needed
authorTaylor Simpson <tsimpson@quicinc.com>
Tue, 7 Mar 2023 02:58:20 +0000 (18:58 -0800)
committerTaylor Simpson <tsimpson@quicinc.com>
Tue, 7 Mar 2023 04:47:12 +0000 (20:47 -0800)
commit4d13bb51d2db3134754d3361d289f719a61c4673
tree8f187a70657f9f12afff46ac3ee5b3a93169df87
parent10849c2623af6f1c122956aaee8329b9414e637d
Hexagon (target/hexagon) Don't set pkt_has_store_s1 when not needed

The pkt_has_store_s1 field in CPUHexagonState is only needed in generated
helpers for scalar load instructions.  See check_noshuf and mem_load[1248]
in op_helper.c.

We add logic in gen_analyze_funcs.py to set need_pkt_has_store_s1 in
DisasContext when it is needed at runtime.

Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Message-Id: <20230307025828.1612809-7-tsimpson@quicinc.com>
target/hexagon/attribs_def.h.inc
target/hexagon/gen_analyze_funcs.py
target/hexagon/hex_common.py
target/hexagon/translate.c
target/hexagon/translate.h