diff options
| author | Anup Patel <[email protected]> | 2020-08-18 11:51:16 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2020-09-01 10:28:26 +0530 |
| commit | 7b0b289887380d2e71210f12b5ce0f3afc011b35 (patch) | |
| tree | 14af735edbeccd13b12a41964c959b14b6488cb4 /include | |
| parent | 4f3bad6e43f0e5a1a124847edf910e309ae9d59a (diff) | |
lib: sbi: Remove redundant SBI_HART_HAS_PMP feature
The SBI_HART_HAS_PMP feature is redundant because we already
have number of PMP regions returned by sbi_hart_pmp_count().
Checking whether PMP is supported for a HART can be simply done
by checking non-zero value returned by sbi_hart_pmp_count().
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Reviewed-by: Atish Patra <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbi/sbi_hart.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/sbi/sbi_hart.h b/include/sbi/sbi_hart.h index 51c2c353..c2ea6869 100644 --- a/include/sbi/sbi_hart.h +++ b/include/sbi/sbi_hart.h @@ -14,14 +14,12 @@ /** Possible feature flags of a hart */ enum sbi_hart_features { - /** Hart has PMP support */ - SBI_HART_HAS_PMP = (1 << 0), /** Hart has S-mode counter enable */ - SBI_HART_HAS_SCOUNTEREN = (1 << 1), + SBI_HART_HAS_SCOUNTEREN = (1 << 0), /** Hart has M-mode counter enable */ - SBI_HART_HAS_MCOUNTEREN = (1 << 2), + SBI_HART_HAS_MCOUNTEREN = (1 << 1), /** HART has timer csr implementation in hardware */ - SBI_HART_HAS_TIME = (1 << 3), + SBI_HART_HAS_TIME = (1 << 2), /** Last index of Hart features*/ SBI_HART_HAS_LAST_FEATURE = SBI_HART_HAS_TIME, |
