Re: [PATCH] riscv: Discard vector state on syscalls
From: Björn Töpel
Date: Mon Jun 26 2023 - 11:47:07 EST
Vineet Gupta <vineetg@xxxxxxxxxxxx> writes:
> On 6/22/23 10:36, Björn Töpel wrote:
>> From: Björn Töpel <bjorn@xxxxxxxxxxxx>
>>
>> The RISC-V vector specification states:
>> Executing a system call causes all caller-saved vector registers
>> (v0-v31, vl, vtype) and vstart to become unspecified.
>
> So the only use case of saving/restoring V regs in __switch_to is an
> interrupt induced task switch ?
Yes!