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

Andreas Schwab schwab at suse.de
Wed Dec 21 05:59:54 PST 2022


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