Hi,
It seems NaxRiscv wants to update tval when trapping exception in the source codes.
But I found that when encounters illegal_inst exception under U-mode(the exception is trapped into M-mode), NaxRiscv doesn't update mtval correctly, the value of mtval is still 0x0.