@@ -31,7 +31,7 @@
ENTRY(__vstate_save)
li status, SR_VS
- csrs sstatus, status
+ csrs CSR_STATUS, status
csrr x_vstart, CSR_VSTART
csrr x_vtype, CSR_VTYPE
@@ -51,13 +51,13 @@ ENTRY(__vstate_save)
REG_S x_vl, RISCV_V_STATE_VL(vstatep)
REG_S x_vcsr, RISCV_V_STATE_VCSR(vstatep)
- csrc sstatus, status
+ csrc CSR_STATUS, status
ret
ENDPROC(__vstate_save)
ENTRY(__vstate_restore)
li status, SR_VS
- csrs sstatus, status
+ csrs CSR_STATUS, status
vsetvli incr, x0, e8, m8
vle8.v v0, (datap)
@@ -76,7 +76,7 @@ ENTRY(__vstate_restore)
csrw CSR_VSTART, x_vstart
csrw CSR_VCSR, x_vcsr
- csrc sstatus, status
+ csrc CSR_STATUS, status
ret
ENDPROC(__vstate_restore)