
13 Aug
2024
13 Aug
'24
5:27 a.m.
On Sun, Aug 11, 2024 at 04:41:23PM +0200, Heinrich Schuchardt wrote:
[EXTERNAL MAIL]
Some versions of KVM don't allow access to the cycle CSR.
Provide a command 'exception rdcycle' for testing.
If the cycle CSR is accessible, we get an output like:
=> exception rdcycle cycle = 0x41f7563de
If the cycle CSR is not accessible, we get an output like:
=> exception rdcycle Unhandled exception: Illegal instruction
Put subcommands into alphabetical order in long help.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
cmd/riscv/exception.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
Reviewed-by: Leo Yu-Chi Liang ycliang@andestech.com