qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: Programmingkid <programmingkidx@gmail.com>
Cc: "qemu-devel@nongnu.org qemu-devel" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] New documentation for the LatticeMicro32 target
Date: Tue, 18 Jul 2017 13:44:48 +0200	[thread overview]
Message-ID: <77a5aebb06185f4de234d720d220fa57@walle.cc> (raw)
In-Reply-To: <78CE661B-5A4B-4F93-A1FA-819F5CC4C02B@gmail.com>

Am 2017-07-17 17:18, schrieb Programmingkid:
>> On Jul 17, 2017, at 10:56 AM, Programmingkid 
>> <programmingkidx@gmail.com> wrote:
>> 
>> 
>>> On Jul 17, 2017, at 1:40 AM, Michael Walle <michael@walle.cc> 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:

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();
  }

  void HELPER(wcsr_jtx)(CPULM32State *env, uint32_t jtx)



-michael

  reply	other threads:[~2017-07-18 11:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-09 15:39 [Qemu-devel] New documentation for the LatticeMicro32 target Programmingkid
2017-07-17  5:40 ` Michael Walle
2017-07-17 14:56   ` Programmingkid
2017-07-17 15:18     ` Programmingkid
2017-07-18 11:44       ` Michael Walle [this message]
2017-07-18 14:05         ` Programmingkid
2018-01-09 11:58         ` Peter Maydell
2018-01-09 17:01           ` [Qemu-devel] [PATCH] lm32: take BQL before writing IP/IM register Michael Walle
2018-02-01  9:09             ` Michael Walle
2018-05-09 19:45               ` Philippe Mathieu-Daudé
2018-05-10 13:35                 ` Paolo Bonzini
2018-05-10 13:00             ` Alex Bennée
2018-01-09 17:04           ` [Qemu-devel] New documentation for the LatticeMicro32 target Michael Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77a5aebb06185f4de234d720d220fa57@walle.cc \
    --to=michael@walle.cc \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).