OSDN Git Service

Hexagon (target/hexagon) probe the stores in a packet at start of commit
authorTaylor Simpson <tsimpson@quicinc.com>
Wed, 22 Sep 2021 15:30:46 +0000 (10:30 -0500)
committerTaylor Simpson <tsimpson@quicinc.com>
Wed, 6 Oct 2021 15:29:11 +0000 (10:29 -0500)
commitc23b5764e79f3951e98160faf6e97284453c4056
treecb3c638ac6cf5826494103e33f4307ac8b342bc2
parente3acc2c1961cbe22ca474cd5da4163b7bbf7cea3
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>
target/hexagon/helper.h
target/hexagon/op_helper.c
target/hexagon/translate.c
tests/tcg/hexagon/Makefile.target
tests/tcg/hexagon/hex_sigsegv.c [new file with mode: 0644]