Messages in this thread | ![/](/images/icornerl.gif) | | From | Björn Töpel <> | Subject | Re: [PATCH] riscv: Discard vector state on syscalls | Date | Mon, 26 Jun 2023 17:46:57 +0200 |
| |
Vineet Gupta <vineetg@rivosinc.com> writes:
> On 6/22/23 10:36, Björn Töpel wrote: >> From: Björn Töpel <bjorn@rivosinc.com> >> >> 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!
| ![\](/images/icornerr.gif) |