From patchwork Tue Jul 18 11:44:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 9848111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A69D060392 for ; Tue, 18 Jul 2017 11:45:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93940283C3 for ; Tue, 18 Jul 2017 11:45:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 886AA28549; Tue, 18 Jul 2017 11:45:37 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1BF2B283C3 for ; Tue, 18 Jul 2017 11:45:37 +0000 (UTC) Received: from localhost ([::1]:55689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXQwa-0007I8-Er for patchwork-qemu-devel@patchwork.kernel.org; Tue, 18 Jul 2017 07:45:36 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXQvr-0007FR-4X for qemu-devel@nongnu.org; Tue, 18 Jul 2017 07:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXQvq-0006Jz-4B for qemu-devel@nongnu.org; Tue, 18 Jul 2017 07:44:51 -0400 Received: from ssl.serverraum.org ([2a01:4f8:130:84d6::1:2]:51128) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXQvp-0006JY-QR for qemu-devel@nongnu.org; Tue, 18 Jul 2017 07:44:50 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 817FA226FB; Tue, 18 Jul 2017 13:44:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1500378288; bh=vW5ZmgMFpIaT4t0HYxghjX7iRX3E29xjDZpGaRNRNjo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VQ2WaBbe0QUHuG90bUP56esqMvr7p86srnwfE7VYHw2zWbyhuPRD4ROc+W70aPzWx +Xij8PYZLfNSVSSlL+LcZNefzNOV3CIQNGKVHMjmoU0/urTslpxw8OqZdCfmNvibpR TYrUwyKHpgj+YGLyRjKedB8hsJqWDMUJR0ejP/iM= MIME-Version: 1.0 Date: Tue, 18 Jul 2017 13:44:48 +0200 From: Michael Walle To: Programmingkid In-Reply-To: <78CE661B-5A4B-4F93-A1FA-819F5CC4C02B@gmail.com> References: <038DD9E8-EB5A-4575-BAF9-ED62D31700E0@gmail.com> <4FE60F15-93AE-49AA-A909-66D8B9D058B8@gmail.com> <78CE661B-5A4B-4F93-A1FA-819F5CC4C02B@gmail.com> Message-ID: <77a5aebb06185f4de234d720d220fa57@walle.cc> X-Sender: michael@walle.cc User-Agent: Roundcube Webmail/1.1.5 X-Virus-Scanned: clamav-milter 0.99.2 at web X-Virus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:4f8:130:84d6::1:2 Subject: Re: [Qemu-devel] New documentation for the LatticeMicro32 target 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: "qemu-devel@nongnu.org qemu-devel" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Am 2017-07-17 17:18, schrieb Programmingkid: >> On Jul 17, 2017, at 10:56 AM, Programmingkid >> wrote: >> >> >>> On Jul 17, 2017, at 1:40 AM, Michael Walle wrote: >>> >>> Am 2017-07-09 17:39, schrieb Programmingkid: >>>> I just made a documentation page for the LatticeMicro32 target. I >>>> need >>>> to know its current status, how much of this system is implemented, >>>> what software runs on it. If anyone could supply more information >>>> that >>>> would be appreciated. Pictures of this target running would be great >>>> as well. Thanks. >>>> Here is the page: >>>> http://wiki.qemu.org/Documentation/Platforms/LatticeMico32 >>> >>> Hi, >>> >>> thank you for your efforts. I have to admit that the current status >>> is unknown. >>> >>> I've just compiled the latest head and it looks like the BQL is >>> missing for the interrupt helpers. I'll post a patch soon. With the >>> patch, the basic stuff is working but there seems to be an issue with >>> OpenGL. >>> >>> You can read the quickstart instructions at: >>> http://milkymist.walle.cc/README.qemu >>> >>> The flash image isn't working because it will boot right into the >>> visualization mode, which is using the OpenGL stuff. The "-kernel >>> flickernoise" method is working though. You can get the flickernoise >>> binary at: >>> http://milkymist.walle.cc/updates/current/flickernoise >>> >>> Besides the milkymist emulation, there is plain lm32 emulation based >>> on the Lattice reference design which should be ok, because the tests >>> are working (make -C tests/tcg/lm32 check) >>> >>> -michael >> >> Thank you for all this information. It has been added to the wiki >> page. >> > > I just tried qemu-system-lm32 and it crashed. > > Command-line: qemu-system-lm32 -M milkymist -kernel flickernoise > > Error message: audio: Failed to create voice `mm_ac97.in' > ** > ERROR: /accel/tcg/tcg-all.c:42:tcg_handle_interrupt: assertion failed: > (qemu_mutex_iothread_locked()) > Abort trap: 6 > > Host: Mac OS 10.12.5 As I said before, I guess the BQL is missing here. Try the following patch: void HELPER(wcsr_jtx)(CPULM32State *env, uint32_t jtx) -michael diff --git a/target/lm32/op_helper.c b/target/lm32/op_helper.c index 2177c8ad12..93b8d09794 100644 --- a/target/lm32/op_helper.c +++ b/target/lm32/op_helper.c @@ -102,12 +102,16 @@ void HELPER(wcsr_dc)(CPULM32State *env, uint32_t dc) void HELPER(wcsr_im)(CPULM32State *env, uint32_t im) { + qemu_mutex_lock_iothread(); lm32_pic_set_im(env->pic_state, im); + qemu_mutex_unlock_iothread(); } void HELPER(wcsr_ip)(CPULM32State *env, uint32_t im) { + qemu_mutex_lock_iothread(); lm32_pic_set_ip(env->pic_state, im); + qemu_mutex_unlock_iothread(); }