lib: sbi: Support sscofpmf extension in OpenSBI
authorAtish Patra <atish.patra@wdc.com>
Mon, 8 Nov 2021 18:53:00 +0000 (10:53 -0800)
committerAnup Patel <anup@brainfault.org>
Thu, 11 Nov 2021 12:16:57 +0000 (17:46 +0530)
commit730f01bb41a603cf03d2cfd9c27317389962ffee
tree80b373952391f67b982675b8f031d9718caf9d01
parent9134c3643e420b1917cf98940552ef16467f7a34
lib: sbi: Support sscofpmf extension in OpenSBI

This patch adds sscofpmf extension in pmu module which includes
following things.

1. Enable overflow irq when starting a counter.
2. Setting the correct event filters passed from supervisor.
3. Delegating the overflow interrupt to the supervisor.
4. Add RV32 support for sscofpmf.

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