Commit 1b2c3ea8 authored by Andrew Waterman's avatar Andrew Waterman
Browse files

Enable access to cycle counter before trying to write it

There are two reasons that writing the cycle counter might trap:
- Because it's a read-only CSR
- Because mcounteren.CY=0 or scounteren.CY=0

We want to make sure we're testing the first property, so set up
the other bits accordingly.
parent 3e175a09
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