From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq0lP-0004mg-0c for qemu-devel@nongnu.org; Wed, 06 May 2015 10:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yq0lL-0005A6-QY for qemu-devel@nongnu.org; Wed, 06 May 2015 10:57:30 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:11787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yq0lL-00059F-Lo for qemu-devel@nongnu.org; Wed, 06 May 2015 10:57:27 -0400 From: Leon Alrae Date: Wed, 6 May 2015 15:57:05 +0100 Message-ID: <1430924229-20469-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/4] semihosting: clean up and add --semihosting-config arg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, christopher.covington@linaro.org, matthew.fortune@imgtec.com, ilg@livius.net 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 Leon Alrae (4): semihosting: remove semihosting_enabled declaration from sysemu.h semihosting: remove semihosting_target declaration from gdbstub.h semihosting: create SemihostingConfig struct semihosting: add --semihosting-config arg sub-argument gdbstub.c | 8 +++--- include/exec/gdbstub.h | 6 ---- include/exec/semihost.h | 56 +++++++++++++++++++++++++++++++++++++ include/sysemu/sysemu.h | 1 - qemu-options.hx | 8 ++++-- target-arm/helper.c | 7 +++-- target-lm32/helper.c | 3 +- target-m68k/op_helper.c | 5 ++-- target-xtensa/translate.c | 3 +- vl.c | 71 +++++++++++++++++++++++++++++++++++++++++------ 10 files changed, 137 insertions(+), 31 deletions(-) create mode 100644 include/exec/semihost.h