OSDN Git Service

target/arm: Implement MTE tag-checking functions for FEAT_MOPS
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2023 14:04:28 +0000 (15:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2023 15:07:14 +0000 (16:07 +0100)
commit8163998920388d7fa8534185460320838046f089
treec8e938b025122887fe21c057ff81af5cd132c0ba
parentaa03378bccb1138cb6a3d5a8c91b11feda036188
target/arm: Implement MTE tag-checking functions for FEAT_MOPS

The FEAT_MOPS instructions need a couple of helper routines that
check for MTE tag failures:
 * mte_mops_probe() checks whether there is going to be a tag
   error in the next up-to-a-page worth of data
 * mte_check_fail() is an existing function to record the fact
   of a tag failure, which we need to make global so we can
   call it from helper-a64.c

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230912140434.1333369-7-peter.maydell@linaro.org
target/arm/internals.h
target/arm/tcg/mte_helper.c