From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsIGL-0003GQ-HY for qemu-devel@nongnu.org; Tue, 12 May 2015 18:02:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsIGI-0005le-Cj for qemu-devel@nongnu.org; Tue, 12 May 2015 18:02:53 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:28766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsIGI-0005kl-87 for qemu-devel@nongnu.org; Tue, 12 May 2015 18:02:50 -0400 From: Leon Alrae Date: Tue, 12 May 2015 23:01:36 +0100 Message-ID: <1431468101-5419-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/5] target-mips: add UHI semihosting support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: matthew.fortune@imgtec.com, aurelien@aurel32.net Hi, This patch series introduces the Unified Hosting Interface support to QEMU. This is second version which uses new -semihosting-config arg and addresses Matthew's review comments. Regards, Leon v2: * use new -semihosting arg option, thus it applies on top of https://lists.gnu.org/archive/html/qemu-devel/2015-05/msg01417.html * if semihosting args are not present, then fall back to old-style -kernel/-append * clean up SDBBP and remove identical code in different branch * fix overlooked microMIPS SDBBP * translate errno values which don't map 1:1 * update dates in the licence header * return -1 and fake errno when lock_user() fails in write_to_file() and read_from_file() Leon Alrae (3): target-mips: remove identical code in different branch target-mips: add Unified Hosting Interface (UHI) support target-mips: convert host to MIPS errno values when required Maciej W. Rozycki (1): include/softmmu-semi.h: Make semihosting support 64-bit clean Matthew Fortune (1): hw/mips: Do not clear BEV for MIPS malta kernel load hw/mips/mips_malta.c | 11 +- include/exec/softmmu-semi.h | 13 +- qemu-options.hx | 10 +- target-mips/Makefile.objs | 2 +- target-mips/helper.h | 2 + target-mips/mips-semi.c | 358 ++++++++++++++++++++++++++++++++++++++++++++ target-mips/translate.c | 70 +++++---- 7 files changed, 428 insertions(+), 38 deletions(-) create mode 100644 target-mips/mips-semi.c