U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Leo Liang <ycliang@andestech.com>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Rick Chen <rick@andestech.com>, <u-boot@lists.denx.de>
Subject: Re: [PATCH 1/1] cmd: add rdcycle test to RISC-V exception command
Date: Tue, 13 Aug 2024 11:27:39 +0800	[thread overview]
Message-ID: <ZrrSq_UaYPaoKYAb@swlinux02> (raw)
In-Reply-To: <20240811144123.211756-1-heinrich.schuchardt@canonical.com>

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>

      reply	other threads:[~2024-08-13  3:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-11 14:41 [PATCH 1/1] cmd: add rdcycle test to RISC-V exception command Heinrich Schuchardt
2024-08-13  3:27 ` Leo Liang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZrrSq_UaYPaoKYAb@swlinux02 \
    --to=ycliang@andestech.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=rick@andestech.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox