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>
This commit is contained in:
Saiiijchan 2024-12-17 19:55:20 +08:00 committed by GitHub
parent 3ddfffda04
commit e169442c29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -302,7 +302,7 @@ switch_before_exit:
vApplicationIRQHandler:
PUSH {LR}
FMRX R1, FPSCR
VPUSH {D0-D15}
VPUSH {D0-D7}
VPUSH {D16-D31}
PUSH {R1}
@ -311,7 +311,7 @@ vApplicationIRQHandler:
POP {R0}
VPOP {D16-D31}
VPOP {D0-D15}
VPOP {D0-D7}
VMSR FPSCR, R0
POP {PC}