[PATCH Zisslpcfi 2/2] lib: sbi: zsslpcfi detection and elp cfi state reflect back in status

Deepak Gupta debug at rivosinc.com
Wed Dec 21 12:01:24 PST 2022


Thanks Andreas and Bin for your review comments.
Sent out v2 version of the patch.

-Deepak

On Wed, Dec 21, 2022 at 5:59 AM Andreas Schwab <schwab at suse.de> wrote:
>
> On Dez 21 2022, Bin Meng wrote:
>
> >> @@ -693,6 +704,16 @@ __mhpm_skip:
> >>                                         SBI_HART_EXT_SMSTATEEN, true);
> >>         }
> >>
> >> +       if (hfeatures->priv_version >= SBI_HART_PRIV_VER_1_12) {
> >> +               val = csr_read_allowed(CSR_SSP, (unsigned long)&trap);
> >> +               ssp_exist = trap.cause?0:1;
>
>                    ssp_exist = trap.cause == 0;
>
> --
> Andreas Schwab, SUSE Labs, schwab at suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."



More information about the opensbi mailing list