target/arm: use raise_exception_ra for MTE check failure
commit5bf100c3200bc74b5d7b4e430c3b23e60caf1605
authorJamie Iles <jamie@nuviainc.com>
Wed, 26 May 2021 12:18:46 +0000 (26 13:18 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:25 +0000 (3 16:43 +0100)
treea478eb7bd410b8fac18a55bfa9111cbf7cea95b6
parent154acaba0ea9675f175118787b9ca44cbbbc23b7
target/arm: use raise_exception_ra for MTE check failure

Now that raise_exception_ra restores the state before raising the
exception we can use restore_exception_ra to perform the state restore +
exception raising without clobbering the syndrome.

Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jamie Iles <jamie@nuviainc.com>
[PMM: Keep the one line of the comment that is still relevant]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/mte_helper.c