Open vhotspur opened 8 months ago
When should this message be printed? Should we use trace mode for this, or would you prefer to introduce a new explain mode?
When should this message be printed?
Somewhere along the messages such as cpu%u raised TLB refill exception ...
.
Should we use trace mode for this, or would you prefer to introduce a new explain mode?
So far it is just an idea and I have not yet thought about out all the details. But I think it would be an extension of the trace mode, i.e. --explain
would imply --trace
.
Currently MSIM is able to print an alert when (CPU) exception is raised.
The idea behind this issue is to explain why the exception was raised. While it is often possible to determine the reason from various status registers, explicit explanation might help beginners understand the issue more quickly.
Below are to concrete examples where such information would was clearly missing and students were unable to quickly find out what were the actual reasons for the exception.