From: Jaydeep Patil <Jaydeep.Patil@imgtec.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "aburgess@redhat.com" <aburgess@redhat.com>,
"vapier@gentoo.org" <vapier@gentoo.org>,
Joseph Faulls <Joseph.Faulls@imgtec.com>,
"Bhushan Attarde" <Bhushan.Attarde@imgtec.com>
Subject: [PATCH 0/4] sim: riscv: Compressed instruction simulation and semi-hosting support
Date: Tue, 17 Oct 2023 05:53:04 +0000 [thread overview]
Message-ID: <CWXP265MB5321644DE3EB87FDDB7699768CD6A@CWXP265MB5321.GBRP265.PROD.OUTLOOK.COM> (raw)
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]
Hi,
This is a collection of patches that add simulation of compressed integer
instruction set ("c") and semi-hosting support to the RISC-V simulator. It also
fixes 32bit JALR instruction simulation when RD is same as RS1. Two tests are
added in gdb.arch to test basic semi-hosting and then the simulation of
compressed integer instructions.
Patch #1 adds basic semi-hosting support (OPEN, EXIT and GET_CMDLINE) and
gdb.arch/riscv-exit-getcmd.c test
Patch #2 fixes JALR instruction simulation when RD is same as RS1
Patch #3 adds support for compressed integer instruction set ("c") and
gdb.arch/riscv-insn-simulation.c test
Patch #4 adds support for remaining semi-hosting calls
Contributions from:
Joseph Faulls (Joseph.Faulls@imgtec.com<mailto:Joseph.Faulls@imgtec.com>)
Jaydeep Patil (Jaydeep.Patil@imgtec.com<mailto:Jaydeep.Patil@imgtec.com>)
Bhushan Attarde (Bhushan.Attarde@imgtec.com<mailto:Bhushan.Attarde@imgtec.com>)
Jaydeep Patil (4):
[sim/riscv] Add basic semi-hosting support
[sim/riscv] Fix JALR instruction simulation
[sim/riscv] Add support for compressed integer instruction set
[sim/riscv] Add semi-hosting support
gdb/testsuite/gdb.arch/riscv-exit-getcmd.c | 6 +
gdb/testsuite/gdb.arch/riscv-exit-getcmd.exp | 31 +
.../gdb.arch/riscv-insn-simulation.c | 1590 +++++++++++++++++
.../gdb.arch/riscv-insn-simulation.exp | 35 +
sim/riscv/riscv-sim.h | 54 +
sim/riscv/sim-main.c | 952 +++++++++-
6 files changed, 2652 insertions(+), 16 deletions(-)
create mode 100644 gdb/testsuite/gdb.arch/riscv-exit-getcmd.c
create mode 100644 gdb/testsuite/gdb.arch/riscv-exit-getcmd.exp
create mode 100644 gdb/testsuite/gdb.arch/riscv-insn-simulation.c
create mode 100644 gdb/testsuite/gdb.arch/riscv-insn-simulation.exp
--
2.25.1
next reply other threads:[~2023-10-17 5:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-17 5:53 Jaydeep Patil [this message]
2023-10-18 11:19 ` Andrew Burgess
2023-10-19 6:51 ` [EXTERNAL] " Jaydeep Patil
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=CWXP265MB5321644DE3EB87FDDB7699768CD6A@CWXP265MB5321.GBRP265.PROD.OUTLOOK.COM \
--to=jaydeep.patil@imgtec.com \
--cc=Bhushan.Attarde@imgtec.com \
--cc=Joseph.Faulls@imgtec.com \
--cc=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=vapier@gentoo.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 read-only IMAP folder(s) and NNTP newsgroup(s).