Re: mtvec question
Andrew Waterman
I think this is one of dozens of little mistakes you can make in bare-metal RISC-V programming, and adding an sstatus bit for it is IMO not a great allocation of resources. Hopefully you are developing your M-mode code with the help of a software simulator, in which case you could just add a feature to your software simulator to catch writes to mtvec that set mtvec[1] and issue a warning to the programmer.
On Thu, Jun 18, 2020 at 11:29 PM Joe Xie <joxie@...> wrote:
|
||
|