target/arm: use raise_exception_ra for stack limit exception
commit9d75d45c0b88c87ac25ee4c65e724447834c1d3b
authorJamie Iles <jamie@nuviainc.com>
Wed, 26 May 2021 12:18:47 +0000 (26 13:18 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:25 +0000 (3 16:43 +0100)
tree5bb95e7168c235cfe3253106dd5ddfa34b46d3f8
parent5bf100c3200bc74b5d7b4e430c3b23e60caf1605
target/arm: use raise_exception_ra for stack limit exception

The sequence cpu_restore_state() + raise_exception() is equivalent to
raise_exception_ra(), so use that instead.  (In this case we never
cared about the syndrome value, because M-profile doesn't use the
syndrome; the old code was just written unnecessarily awkwardly.)

Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jamie Iles <jamie@nuviainc.com>
[PMM: Retain edited version of comment; rewrite commit message]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/m_helper.c
target/arm/op_helper.c