Re: [RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-06-01 Thread Guo Ren
Since it has been redesigned with new version spec, please change the first-author :) And add me as Co-developed. On Tue, May 26, 2020 at 3:03 PM Greentime Hu wrote: > > From: Guo Ren > > This patch adds task switch support for vector. It supports lazy > save and restore mechanism. It also

Re: [RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-05-31 Thread Guo Ren
Hi Greentime, Here, we could detect the task has used vector or not with VS_DIRTY: We could define another flag in struct vs state of thread to illustrate the task have vector or not. When we found VS_DIRTY is set in pt_regs in swith_context or rt_sigreturn syscall, we will set the flag. We

Re: [RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-05-31 Thread Guo Ren
Hi Greentime, On Tue, May 26, 2020 at 3:03 PM Greentime Hu wrote: > > From: Guo Ren > > This patch adds task switch support for vector. It supports lazy > save and restore mechanism. It also supports all lengths of vlen. > > [greentime...@sifive.com: add support for dynamic vlen, fix >

[RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds task switch support for vector. It supports lazy save and restore mechanism. It also supports all lengths of vlen. [greentime...@sifive.com: add support for dynamic vlen, fix __vstate_clean() and lazy save/restore bug] [nick.kni...@sifive.com: Rewrite vector.S to