]> xenbits.xensource.com Git - qemu-xen.git/commit
target/arm: Correct condition for v8M callee stack push
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 8 Oct 2018 13:55:02 +0000 (14:55 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 27 Mar 2019 06:05:11 +0000 (01:05 -0500)
commit6abeb6d85e1d6f225178b1d18a306bb75d9e7f92
tree8af0aa4e0de9e058b1f49c27165cd153668fe482
parent399814e1a17572da006bad487825748fc87552cb
target/arm: Correct condition for v8M callee stack push

In v7m_exception_taken() we were incorrectly using a
"LR bit EXCRET.ES is 1" check when it should be 0
(compare the pseudocode ExceptionTaken() function).
This meant we didn't stack the callee-saved registers
when tailchaining from a NonSecure to a Secure exception.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181002145940.30931-1-peter.maydell@linaro.org
(cherry picked from commit 7b73a1ca05b33d42278ce29cea4652e22d408165)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/arm/helper.c