Refine VFP context for Coretex-A9 (#1209)
s0–s15 (d0–d7, q0–q3) and d16–d31 (q8–q15) are caller save
register
Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
Co-authored-by: wangfei_chen <wangfei_chen@realsil.com.cn>
diff --git a/portable/GCC/ARM_CA9/portASM.S b/portable/GCC/ARM_CA9/portASM.S
index 5e4b870..4dec1d7 100644
--- a/portable/GCC/ARM_CA9/portASM.S
+++ b/portable/GCC/ARM_CA9/portASM.S
@@ -302,7 +302,7 @@
vApplicationIRQHandler:
PUSH {LR}
FMRX R1, FPSCR
- VPUSH {D0-D15}
+ VPUSH {D0-D7}
VPUSH {D16-D31}
PUSH {R1}
@@ -311,7 +311,7 @@
POP {R0}
VPOP {D16-D31}
- VPOP {D0-D15}
+ VPOP {D0-D7}
VMSR FPSCR, R0
POP {PC}