[PATCH 1/1] cmd: add rdcycle test to RISC-V exception command
Leo Liang
ycliang at andestech.com
Tue Aug 13 05:27:39 CEST 2024
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 at canonical.com>
> ---
> cmd/riscv/exception.c | 15 +++++++++++++--
> 1 file changed, 13 insertions(+), 2 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>
More information about the U-Boot
mailing list