diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-10 07:26:06 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-07-24 10:42:46 +0530 |
commit | 4afb57c9ebe27e29ce3777024bfc186991a8b4fe (patch) | |
tree | 75e23b51f978c3d25b1053b5fc3cd42c5c261a70 /scripts/Kconfiglib/setconfig.py | |
parent | f7a92f6b67bda221e96eb8dfa54e1eb162fa984f (diff) | |
download | opensbi-4afb57c9ebe27e29ce3777024bfc186991a8b4fe.zip opensbi-4afb57c9ebe27e29ce3777024bfc186991a8b4fe.tar.gz opensbi-4afb57c9ebe27e29ce3777024bfc186991a8b4fe.tar.bz2 |
lib: sbi_hsm: Save/restore menvcfg only when it exists
Attempting to access the menvcfg CSR raises an illegal instruction
exception on hardware which implements Sm1p11 or older.
Fixes: e9ee9678ba50 ("lib: sbi: fwft: add support for SBI_FWFT_PTE_AD_HW_UPDATING")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts/Kconfiglib/setconfig.py')
0 files changed, 0 insertions, 0 deletions