riscvarchive / riscv-count-overflow

https://jira.riscv.org/browse/RVG-59
Creative Commons Attribution 4.0 International
2 stars 2 forks source link

Can software disable LCOFI by setting mhpmeventx.OF to 1? #4

Closed YenHaoChen closed 1 year ago

YenHaoChen commented 1 year ago

@pdonahue-ventana @gfavor The OF bit is an overflow status and interrupt disable bit. Can software write 1 to the OF bit to disable the interrupt? image image Thank you

gfavor commented 1 year ago

This bit, as well as all bits of the mhpmeventX CSRs, is writable by software. So yes.

YenHaoChen commented 1 year ago

Thank you