From: Eric DeVolder <eric_devolder@yahoo.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: riscv disassembler error with pmpcfg0
Date: Wed, 3 Apr 2024 18:16:46 +0000 (UTC) [thread overview]
Message-ID: <183897139.5301881.1712168206289@mail.yahoo.com> (raw)
In-Reply-To: 183897139.5301881.1712168206289.ref@mail.yahoo.com
I've been using QEMU8 to collect instruction information on U-Boot + OpenSBI.
I'm running QEMU in this fashion to collect the information:
# qemu-system-riscv64 -plugin file=qemu/build/contrib/plugins/libexeclog.so -singlestep -d plugin,nochain -D execlog.txt ...
When examining the instruction trace in execlog, I've noticed that the disassembly for pmpcfg0 is erroneous, for example:
0, 0x5456, 0x3a002573, "csrrs a0,pmpcfg3,zero"
the CSR encoded in the instruction above is 0x3a0, which is pmpcfg0 (which also matches the code I'm examining).
For the Uboot+OpenSBI code I'm examining, pmpcfg0/3 is the only one that appears to have a problem.
I also checked QEMU9 and it behaves as described above as well.
I'm willing to provide a fix if I can get some advice/pointers on how this disassembly statement is generated...I did take a quick look but it didn't appear obvious how...
Thanks,
eric
next parent reply other threads:[~2024-04-03 19:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <183897139.5301881.1712168206289.ref@mail.yahoo.com>
2024-04-03 18:16 ` Eric DeVolder [this message]
2024-05-14 5:19 ` riscv disassembler error with pmpcfg0 Alistair Francis
2024-05-16 11:30 ` Eric DeVolder
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=183897139.5301881.1712168206289@mail.yahoo.com \
--to=eric_devolder@yahoo.com \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).