Closed MrJake222 closed 6 months ago
Hi,
What is the difference between mcycle and cycle?
mcycle is accessible only in machine mode, while cycle is accessible in all privilege modes
While the latter is not supported on this CPU? VexRiscv demo configs are generaly aiming only at being used in machine mode. So, the user mode things isn't enabled by default.
note that in the CsrPluginConfig, you can enable ucycleAccess and uinstretAccess (which correspond to rdcycle and rdinstret)
Thank you for your quick and informative response. I'm still new to risc-v and that's valuable information
Hi,
I'm confused about
rdcycle
andrdinstret
instructions. They generate following assembly instructions:However, only
mcycle
andminstret
control registers are supported on VexRiscV.So my questions are:
mcycle
andcycle
?