gdb/arm: Only stack S16..S31 when FPU registers are secure
authorYvan Roux <yvan.roux@foss.st.com>
Wed, 29 Jun 2022 12:01:45 +0000 (14:01 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Wed, 29 Jun 2022 12:03:26 +0000 (14:03 +0200)
commit69b46464badb01340a88d0ee57cdef0b7fdf545e
tree5f0e91db77fc88362c128ba2dc6724414e5878d7
parent6837a663c55602490ed095e5891e0c4deff4b9db
gdb/arm: Only stack S16..S31 when FPU registers are secure

The FPCCR.TS bit is used to identify if FPU registers are considered
non-secure or secure.  If they are secure, then callee saved registers
(S16 to S31) are stacked on exception entry or otherwise skipped.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
gdb/arch/arm.h
gdb/arm-tdep.c