diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-08-29 13:22:36 -0700 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-09-23 18:12:39 +0530 |
| commit | beef2f693785499153b00f330d0205f91c3add4e (patch) | |
| tree | 1f3a0985f4c3c763fb58ad8bc084eccb4d0cffd0 /include | |
| parent | 00093a20004baf6826d843ac3ff6e8e7c5d06b13 (diff) | |
| download | opensbi-beef2f693785499153b00f330d0205f91c3add4e.zip opensbi-beef2f693785499153b00f330d0205f91c3add4e.tar.gz opensbi-beef2f693785499153b00f330d0205f91c3add4e.tar.bz2 | |
lib: sbi: Respect scounteren when emulating the time CSR
This optimization creates a correctness issue, as it prevents supervisor
software from restricting VS-mode or U-mode access to the time CSR for
its own purposes.
Closes: https://github.com/riscv-software-src/opensbi/issues/370
Fixes: ebc8ebc0f846 ("lib: sbi: Improve HPM CSR read/write emulation")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
