From patchwork Wed Feb 13 03:45:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 10809071 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 60DB51390 for ; Wed, 13 Feb 2019 04:03:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FDC12C6C4 for ; Wed, 13 Feb 2019 04:03:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 440082C714; Wed, 13 Feb 2019 04:03:35 +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 E54A42C6C8 for ; Wed, 13 Feb 2019 04:03:34 +0000 (UTC) Received: from localhost ([127.0.0.1]:50173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtllm-0000VZ-2m for patchwork-qemu-devel@patchwork.kernel.org; Tue, 12 Feb 2019 23:03:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtljZ-0007Zn-QB for qemu-devel@nongnu.org; Tue, 12 Feb 2019 23:01:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtlZQ-00030l-I6 for qemu-devel@nongnu.org; Tue, 12 Feb 2019 22:50:49 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:38750) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtlZO-0002is-66 for qemu-devel@nongnu.org; Tue, 12 Feb 2019 22:50:46 -0500 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 1gtlZD-0002RN-MD from Sandra_Loosemore@mentor.com ; Tue, 12 Feb 2019 19:50:35 -0800 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; Tue, 12 Feb 2019 19:50:33 -0800 From: Sandra Loosemore To: Date: Tue, 12 Feb 2019 20:45:58 -0700 Message-ID: <1550029560-30530-1-git-send-email-sandra@codesourcery.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) 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 v5 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 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 fifth version of the patch series last posted here: http://lists.nongnu.org/archive/html/qemu-devel/2018-08/msg01987.html Since the previous version, I've updated the copyrights on the new files, refreshed the patches against current trunk, and fixed bugs in the implementations of lseek() and gettimeofday(). The original version of these patches was rejected because there was no corresponding open-source BSP or I/O library support, making it difficult to test the code. I contributed those pieces to libgloss last summer (commit fddc74d12bf7f765c04c3182a7237ecf23893d27), so that should no longer be a blocking issue. Sandra Loosemore (2): Add generic Nios II board. Add Nios II semihosting support. default-configs/nios2-softmmu.mak | 1 + hw/nios2/Makefile.objs | 1 + hw/nios2/boot.c | 5 +- hw/nios2/generic_nommu.c | 130 +++++++++++ qemu-options.hx | 8 +- target/nios2/Makefile.objs | 2 +- target/nios2/cpu.h | 4 +- target/nios2/helper.c | 11 + target/nios2/nios2-semi.c | 446 ++++++++++++++++++++++++++++++++++++++ 9 files changed, 601 insertions(+), 7 deletions(-) create mode 100644 hw/nios2/generic_nommu.c create mode 100644 target/nios2/nios2-semi.c