Re: [PATCH v12 04/20] target/riscv: save and restore elp state on priv transitions

2024-08-29 Thread Richard Henderson
On 8/30/24 09:34, Deepak Gupta wrote: elp state is recorded in *status on trap entry (less privilege to higher privilege) and restored in elp from *status on trap exit (higher to less privilege). Additionally this patch introduces a forward cfi helper function to determine if current privilege h

[PATCH v12 04/20] target/riscv: save and restore elp state on priv transitions

2024-08-29 Thread Deepak Gupta
elp state is recorded in *status on trap entry (less privilege to higher privilege) and restored in elp from *status on trap exit (higher to less privilege). Additionally this patch introduces a forward cfi helper function to determine if current privilege has forward cfi is enabled or not based o