From: Jonathan Behrens <jonathan@fintelia.io>
To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
Subject: [PATCH v3 0/3] target/riscv: Expose "priv" register for GDB
Date: Mon, 7 Oct 2019 20:13:15 -0400 [thread overview]
Message-ID: <20191008001318.219367-1-jonathan@fintelia.io> (raw)
The third patch in this series makes the priv virtual register writitable. I'm
not entirely sure this is a good idea, so I split it out into its own patch. In
particular, this change will conflict with the hypervisor extension work which
assumes that the privilege mode does not change in unexpected cases.
As pointed out in a previous version of this series, GDB actually contains some
support already for the accessing the privilege mode via a virtual "priv"
register, including to convert the values into human readable forms:
(gdb) info reg priv
priv 0x3 prv:3 [Machine]
Changlog V3:
- Break patch into series
- Make priv a virtual register
Changelog V2:
- Use PRV_H and PRV_S instead of integer literals
Jonathan Behrens (3)
target/riscv: Tell gdbstub the correct number of CSRs
target/riscv: Expose priv register for GDB for reads
target/riscv: Make the priv register writable by GDB
configure | 4 ++--
gdb-xml/riscv-32bit-virtual.xml | 11 +++++++++++
gdb-xml/riscv-64bit-virtual.xml | 11 +++++++++++
target/riscv/gdbstub.c | 36 ++++++++++++++++++++++++++++++++++--
4 files changed, 58 insertions(+), 4 deletions(-)
next reply other threads:[~2019-10-08 0:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-08 0:13 Jonathan Behrens [this message]
2019-10-08 0:13 ` [PATCH v3 1/3] target/riscv: Tell gdbstub the correct number of CSRs Jonathan Behrens
2019-10-08 9:53 ` Bin Meng
2019-10-08 14:01 ` Jonathan Behrens
2019-10-08 16:18 ` Alistair Francis
2019-10-08 0:13 ` [PATCH v3 2/3] target/riscv: Expose priv register for GDB for reads Jonathan Behrens
2019-10-08 12:27 ` Bin Meng
2019-10-08 14:03 ` Jonathan Behrens
2019-10-08 0:13 ` [PATCH v3 3/3] target/riscv: Make the priv register writable by GDB Jonathan Behrens
2019-10-08 12:32 ` Bin Meng
2019-10-08 16:49 ` Alistair Francis
2019-10-08 0:17 ` [PATCH v3 0/3] target/riscv: Expose "priv" register for GDB Jonathan Behrens
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=20191008001318.219367-1-jonathan@fintelia.io \
--to=jonathan@fintelia.io \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@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).