diff options
author | Taylor Simpson <tsimpson@quicinc.com> | 2021-09-22 10:30:46 -0500 |
---|---|---|
committer | Taylor Simpson <tsimpson@quicinc.com> | 2021-10-06 10:29:11 -0500 |
commit | c23b5764e79f3951e98160faf6e97284453c4056 (patch) | |
tree | cb3c638ac6cf5826494103e33f4307ac8b342bc2 /target/hexagon/helper.h | |
parent | e3acc2c1961cbe22ca474cd5da4163b7bbf7cea3 (diff) |
Hexagon (target/hexagon) probe the stores in a packet at start of commit
When a packet has 2 stores, either both commit or neither commit.
At the beginning of gen_commit_packet, we check for multiple stores.
If there are multiple stores, call a helper that will probe each of
them before proceeding with the commit.
Note that we don't call the probe helper for packets with only one
store. Therefore, we call process_store_log before anything else
involved in committing the packet.
We also fix a typo in the comment in process_store_log.
Test case added in tests/tcg/hexagon/hex_sigsegv.c
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <1633036599-7637-1-git-send-email-tsimpson@quicinc.com>
Diffstat (limited to 'target/hexagon/helper.h')
-rw-r--r-- | target/hexagon/helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/hexagon/helper.h b/target/hexagon/helper.h index ca201fb680..89de2a3ee5 100644 --- a/target/hexagon/helper.h +++ b/target/hexagon/helper.h @@ -89,3 +89,5 @@ DEF_HELPER_4(sffms_lib, f32, env, f32, f32, f32) DEF_HELPER_3(dfmpyfix, f64, env, f64, f64) DEF_HELPER_4(dfmpyhh, f64, env, f64, f64, f64) + +DEF_HELPER_2(probe_pkt_scalar_store_s0, void, env, int) |