From patchwork Thu Mar 21 18:40:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 10864205 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 87EE01575 for ; Thu, 21 Mar 2019 18:52:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D7B22A456 for ; Thu, 21 Mar 2019 18:52:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F3F62A458; Thu, 21 Mar 2019 18:52:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A64942A456 for ; Thu, 21 Mar 2019 18:52:41 +0000 (UTC) Received: from localhost ([127.0.0.1]:45163 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h72nw-0000Ph-47 for patchwork-qemu-devel@patchwork.kernel.org; Thu, 21 Mar 2019 14:52:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h72mZ-0007jk-25 for qemu-devel@nongnu.org; Thu, 21 Mar 2019 14:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h72cW-0007Lk-Gm for qemu-devel@nongnu.org; Thu, 21 Mar 2019 14:40:53 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:63227) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h72cU-0007FY-SW for qemu-devel@nongnu.org; Thu, 21 Mar 2019 14:40:51 -0400 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1h72cN-0006pR-LZ from Sandra_Loosemore@mentor.com ; Thu, 21 Mar 2019 11:40:43 -0700 Received: from anura.Home (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 21 Mar 2019 11:40:41 -0700 From: Sandra Loosemore To: Date: Thu, 21 Mar 2019 12:40:28 -0600 Message-ID: <1553193630-28611-1-git-send-email-sandra@codesourcery.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-ClientProxiedBy: SVR-ORW-MBX-06.mgc.mentorg.com (147.34.90.206) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-Received-From: 192.94.38.131 Subject: [Qemu-devel] [PATCH v6 0/2] Nios II generic board config and semihosting X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: marex@denx.de, peter.maydell@linaro.org, crwulff@gmail.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is the sixth version of the patch series last posted here: http://lists.nongnu.org/archive/html/qemu-devel/2019-02/msg03167.html Changes since v5 include: - The code to allow booting from a low memory address has been simplified and better commented. - Random devices not supported by the libgloss BSP have been removed from the new nios2-generic-nommu emulation. - FIXMEs in the semihosting code have been fixed, along with other nits from review. Also, the semihosting specification can now be found in libgloss. Sandra Loosemore (2): Add generic Nios II board. Add Nios II semihosting support. default-configs/nios2-softmmu.mak | 1 + hw/nios2/Kconfig | 4 + hw/nios2/Makefile.objs | 1 + hw/nios2/boot.c | 17 +- hw/nios2/generic_nommu.c | 104 +++++++++ qemu-options.hx | 8 +- target/nios2/Makefile.objs | 2 +- target/nios2/cpu.h | 4 +- target/nios2/helper.c | 13 ++ target/nios2/nios2-semi.c | 448 ++++++++++++++++++++++++++++++++++++++ 10 files changed, 590 insertions(+), 12 deletions(-) create mode 100644 hw/nios2/generic_nommu.c create mode 100644 target/nios2/nios2-semi.c