Re: [PATCH v2] RISC-V: Add support to vector stack-clash protection

2024-08-05 Thread Jeff Law
On 8/1/24 2:16 PM, Raphael Zinsly wrote: On Thu, Aug 1, 2024 at 3:40 PM Jeff Law wrote: On 8/1/24 6:01 AM, Raphael Moreira Zinsly wrote: +/* Both prologue temp registers are used in the vector probe loop for when + stack-clash protection is enabled, so we need to copy SP to a new register

Re: [PATCH v2] RISC-V: Add support to vector stack-clash protection

2024-08-01 Thread Raphael Zinsly
On Thu, Aug 1, 2024 at 3:40 PM Jeff Law wrote: > On 8/1/24 6:01 AM, Raphael Moreira Zinsly wrote: > > +/* Both prologue temp registers are used in the vector probe loop for when > > + stack-clash protection is enabled, so we need to copy SP to a new > > register > > + and set it as CFA during

Re: [PATCH v2] RISC-V: Add support to vector stack-clash protection

2024-08-01 Thread Jeff Law
On 8/1/24 6:01 AM, Raphael Moreira Zinsly wrote: +/* Both prologue temp registers are used in the vector probe loop for when + stack-clash protection is enabled, so we need to copy SP to a new register + and set it as CFA during the loop, we are using T3 for that. */ +#define RISCV_ST