From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2bVH-0007Co-0A for qemu-devel@nongnu.org; Fri, 04 Nov 2016 06:13:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2bVC-00048S-TN for qemu-devel@nongnu.org; Fri, 04 Nov 2016 06:13:42 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:33994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2bVC-00047E-MW for qemu-devel@nongnu.org; Fri, 04 Nov 2016 06:13:38 -0400 Received: by mail-wm0-x244.google.com with SMTP id p190so3142611wmp.1 for ; Fri, 04 Nov 2016 03:13:38 -0700 (PDT) Sender: Paolo Bonzini References: <1478182068-14082-1-git-send-email-laurent@vivier.eu> <06f03abb-3a18-12c3-b359-dcdc0aaeabfe@redhat.com> <32960507-f61e-e3a1-76f3-74a755adb7e3@vivier.eu> <2379a026-68ec-7a9f-4482-32d190c70251@physik.fu-berlin.de> <121ee4a7-2f98-40cd-8a18-e5ca61b56049@physik.fu-berlin.de> <8f8ff077-09b7-7b7a-bd78-c12bc1d38389@vivier.eu> From: Paolo Bonzini Message-ID: Date: Fri, 4 Nov 2016 11:13:34 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Paul Adrian Glaubitz , Laurent Vivier , Aurelien Jarno Cc: qemu-devel@nongnu.org, Richard Henderson On 04/11/2016 11:00, John Paul Adrian Glaubitz wrote: > On 11/04/2016 10:53 AM, Laurent Vivier wrote: >> I think it's more likely a linux-user bug than a target-sh4 bug. >> >> As you report in a mail to me in February, "do_futex()" must be >> protected against parallel execution for some futex commands. > > FWIW, it works fine on qemu-user-armel last time I tested. I could > build GHC completely on qemu-user for armel without any issues. > > Btw, if anyone wants to test themselves: > > $ wget http://users.physik.fu-berlin.de/~glaubitz/sid-sh4-sbuild-ghc.tgz > $ tar xf sid-sh4-sbuild-ghc.tgz > (compile qemu with --target-list=sh4-linux-user --static) > $ cp -av qemu-sh4 sid-sh4-sbuild-ghc/usr/bin/qemu-sh4-static > $ chroot sid-sh4-sbuild-ghc > (in chroot): > $ cd /root/ghc-7.8.4/utils/ghc-pwd > $ ghc Main.hs If Haskell is compiled to use the "negative sp" trick that Richard mentioned, it would rely on the SH machine being uniprocessor. Try running chroot with "taskset -c 0". Paolo