public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] sim: riscv: Compressed instruction simulation and semi-hosting support
@ 2023-10-17  5:53 Jaydeep Patil
  2023-10-18 11:19 ` Andrew Burgess
  0 siblings, 1 reply; 3+ messages in thread
From: Jaydeep Patil @ 2023-10-17  5:53 UTC (permalink / raw)
  To: gdb-patches; +Cc: aburgess, vapier, Joseph Faulls, Bhushan Attarde

[-- 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-19  6:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-17  5:53 [PATCH 0/4] sim: riscv: Compressed instruction simulation and semi-hosting support Jaydeep Patil
2023-10-18 11:19 ` Andrew Burgess
2023-10-19  6:51   ` [EXTERNAL] " Jaydeep Patil

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).