All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v4 0/2] semihosting: clean up and add --semihosting-config arg
@ 2015-05-26 16:03 Leon Alrae
  2015-05-26 16:03 ` [Qemu-devel] [PATCH v4 1/2] semihosting: create SemihostingConfig structure and semihost.h Leon Alrae
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Leon Alrae @ 2015-05-26 16:03 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, christopher.covington, matthew.fortune, ilg

Hi,

This patch series adds "arg=" sub-option to --semihosting-config group. It
allows building up a list of input arguments as it can appear multiple
times in the command line. This is a flexible solution for creating
argc/argv for the guest program (needed by UHI semihosting for example).
RFC patch and related discussion was here:
https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg00115.html

It also contains some generic code clean up -- all semihosting related
things were moved to vl.c (where they are actually set) and grouped in
the SemihostingConfig structure. They can be accessed via
include/exec/semihost.h introduced in this patch series.

Since this touches generic semihosting code I'm sending it as a separate
patchset from MIPS-specific UHI semihosting patches.

Regards,
Leon

v4:
* add semihosting_get_cmdline() and update arm-semi.c to support new option
* for backward compatibility use -kernel/-append to initialize semihosting.argv
* update qemu doc to describe the interaction between arg and -kernel/-append

v3:
* improved documentation (rephrased and used @table so that generated
  doc looks nicer)

v2:
* squash clean-up related patches so renaming is not required (these
  modifications are relatively simple anyway).

Leon Alrae (2):
  semihosting: create SemihostingConfig structure and semihost.h
  semihosting: add --semihosting-config arg sub-argument

 gdbstub.c                 |   8 ++--
 include/exec/gdbstub.h    |   6 ---
 include/exec/semihost.h   |  62 ++++++++++++++++++++++++++++
 include/sysemu/sysemu.h   |   1 -
 qemu-options.hx           |  21 +++++++---
 target-arm/arm-semi.c     |  10 ++---
 target-arm/helper.c       |   7 ++--
 target-lm32/helper.c      |   3 +-
 target-m68k/op_helper.c   |   5 +--
 target-xtensa/translate.c |   3 +-
 vl.c                      | 102 ++++++++++++++++++++++++++++++++++++++++++----
 11 files changed, 188 insertions(+), 40 deletions(-)
 create mode 100644 include/exec/semihost.h

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

end of thread, other threads:[~2015-06-18 12:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26 16:03 [Qemu-devel] [PATCH v4 0/2] semihosting: clean up and add --semihosting-config arg Leon Alrae
2015-05-26 16:03 ` [Qemu-devel] [PATCH v4 1/2] semihosting: create SemihostingConfig structure and semihost.h Leon Alrae
2015-05-26 16:03 ` [Qemu-devel] [PATCH v4 2/2] semihosting: add --semihosting-config arg sub-argument Leon Alrae
2015-06-05 15:23   ` Peter Maydell
2015-06-05 20:09     ` Leon Alrae
2015-06-05 21:11       ` Liviu Ionescu
2015-06-05 22:54         ` Peter Maydell
2015-06-06  8:50           ` Liviu Ionescu
2015-06-16 12:32             ` Liviu Ionescu
2015-06-16 14:03               ` Peter Maydell
2015-06-16 14:20                 ` Leon Alrae
2015-06-18 12:29                   ` Peter Maydell
2015-06-03 12:30 ` [Qemu-devel] [PATCH v4 0/2] semihosting: clean up and add --semihosting-config arg Leon Alrae

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.