Received: from eggs.gnu.org ([2001:4830:134:3::10]:40232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5cFc-0007AU-K4 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:01:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5cFZ-00042O-ET for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:01:12 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:34360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5cFZ-00041z-9d for qemu-devel@nongnu.org; Thu, 18 Jun 2015 12:01:09 -0400 From: Leon Alrae Date: Thu, 18 Jun 2015 17:00:54 +0100 Message-ID: <1434643256-16858-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v5 0/2] 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 Just a rebase of v4 as there were changes in qemu_opt_foreach API. Regards, Leon v5: * rebase 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 | 104 ++++++++++++++++++++++++++++++++++++++++++---- 11 files changed, 190 insertions(+), 40 deletions(-) create mode 100644 include/exec/semihost.h