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 <[email protected]> > --- > cmd/riscv/exception.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <[email protected]>

