在 2023/10/31 下午10:50, Richard Henderson 写道:
On 10/30/23 23:16, gaosong wrote:
Anyway, I think my previous suggestion is better:
Oh, Could you show more details? I think I didn't get you point.
If you want to track what the program is using, you should do it
exactly like the real kernel: disable the execution unit, have the
program trap, and the enable the execution unit when the trap
occurs. At this point, CSR_EUEN enable bits contain
Untested, but something like this.
Got it . Thank you very much.
Thanks.
Song Gao
r~