]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Add lazy-FP-stacking support to v7m_stack_write()
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:36:02 +0000 (17:36 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Apr 2019 16:36:02 +0000 (17:36 +0100)
commita356dacf647506bccdf8ecd23574246a8bf615ac
tree43bacaa59bdc32619af45f7489d1eacc0f6cb7c5
parenta99ba8ab1601904e0fa20325192fc850362ce80e
target/arm: Add lazy-FP-stacking support to v7m_stack_write()

Pushing registers to the stack for v7M needs to handle three cases:
 * the "normal" case where we pend exceptions
 * an "ignore faults" case where we set FSR bits but
   do not pend exceptions (this is used when we are
   handling some kinds of derived exception on exception entry)
 * a "lazy FP stacking" case, where different FSR bits
   are set and the exception is pended differently

Implement this by changing the existing flag argument that
tells us whether to ignore faults or not into an enum that
specifies which of the 3 modes we should handle.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190416125744.27770-23-peter.maydell@linaro.org
target/arm/helper.c