Commit b2df751a authored by Atish Patra's avatar Atish Patra Committed by Anup Patel
Browse files

platform: Move platform features to hart



PMP & performance counters belong to a hart rather than a platform.
In addition to that, these features enable reading/writing from a
particular csr. Thus, they can be detected and set at runtime rather
than compile time.

Move PMP/MCOUNTEREN/SCOUNTEREN features to hart and detect them at runtime.

Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Tested-by: default avatarJonathan Balkind <jbalkind@cs.princeton.edu>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 6a053f6e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment