lib: sbi: Delegate PMU counter overflow interrupt to S mode
authorAtish Patra <atish.patra@wdc.com>
Mon, 8 Nov 2021 18:52:59 +0000 (10:52 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 11 Nov 2021 12:15:12 +0000 (17:45 +0530)
commit9134c3643e420b1917cf98940552ef16467f7a34
treea744935898916dd4b71c2c49fb0f7e0cc1508550
parent867c65360df283f056afa963ad8333e9c1eb21bb
lib: sbi: Delegate PMU counter overflow interrupt to S mode

OpenSBI doesn't handle PMU counters for now.

Delegate the overflow counter to S-mode always.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
include/sbi/riscv_encoding.h
lib/sbi/sbi_hart.c