The user and supervisor counters could not be safely enabled before as the register numbers were not finalized. Now that everyone agrees, we can enable them. Until we are sure the toolchains are caught up, we use the hardcode name with the register names in comments. As soon as toolchains settle down we'll do one more pass and convert to the symbolic names.
Tested on lowrisc bitstream and SPIKE simulator.
f171e66 riscv: enable counters via m[us]counteren
src/arch/riscv/virtual_memory.c | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)