From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7727 Path: news.gmane.org!not-for-mail From: Richard Henderson Newsgroups: gmane.comp.emulators.qemu,gmane.linux.lib.musl.general Subject: Re: Broken SuperH atomics in qemu app-level emulation Date: Wed, 20 May 2015 12:16:38 -0700 Message-ID: <555CDD96.40701@twiddle.net> References: <20150518030536.GA14435@brightrain.aerifal.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432149440 5519 80.91.229.3 (20 May 2015 19:17:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 19:17:20 +0000 (UTC) To: Rich Felker , musl@lists.openwall.com, qemu-devel@nongnu.org, Aurelien Jarno Original-X-From: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Wed May 20 21:17:12 2015 Return-path: Envelope-to: gceq-qemu-devel@gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yv9UB-0007X1-E0 for gceq-qemu-devel@gmane.org; Wed, 20 May 2015 21:16:59 +0200 Original-Received: from localhost ([::1]:53799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv9UA-0003Dt-N1 for gceq-qemu-devel@gmane.org; Wed, 20 May 2015 15:16:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv9Tz-0003DY-4x for qemu-devel@nongnu.org; Wed, 20 May 2015 15:16:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv9Tv-0002lz-Kb for qemu-devel@nongnu.org; Wed, 20 May 2015 15:16:47 -0400 Original-Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:33410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv9Tv-0002lv-CG for qemu-devel@nongnu.org; Wed, 20 May 2015 15:16:43 -0400 Original-Received: by qkgv12 with SMTP id v12so38643415qkg.0 for ; Wed, 20 May 2015 12:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=UISX1+TpVnW6arBAlArSAzGOlxStzqfxhRiMuBJQp8w=; b=b01EGzpGiQUGHJhhT9LtuFAwcqMjOroi7iwgY+/zy05TcghchgF/c4yUi9TthSgmuY Ynv9YB81asTqIGsGwHTnb+n4m+qJ6tKPwhHxVGKEbppFqCjxfU1ly1P1YYulcYSR7uc5 FC6wwRhAaK3XtooGWt2dtaLRlkRmSZCYMvD/rkUv5OZnsm2/CotmNkY8zCSqt/1HSBjj yLZVEPDhL8RNQp71PVwNNVMDTOlJxeAxNtqAQ9uOCSSh3mP3XiCm/GaqFU0wUH28Adf2 O0/u5Yfb92RzefC1jEHjzsxn3VmWMrKryzIBrmTJV8d5U/h82K9cskvscHqm+m2p0Q+O sLqg== X-Received: by 10.55.40.132 with SMTP id o4mr75367127qko.61.1432149403006; Wed, 20 May 2015 12:16:43 -0700 (PDT) Original-Received: from pike.twiddle.home (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id t33sm11731774qge.19.2015.05.20.12.16.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 12:16:41 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150518030536.GA14435@brightrain.aerifal.cx> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c09::22c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Original-Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Xref: news.gmane.org gmane.comp.emulators.qemu:337769 gmane.linux.lib.musl.general:7727 Archived-At: On 05/17/2015 08:05 PM, Rich Felker wrote: > At the very least qemu-sh4 should provide a correct value of AT_HWCAP > so we get working atomics with -cpu SH7785. And since the GUSA atomic > model can't work with app-level emulation, I really think qemu-sh4 > should either default to -cpu SH7785 or always expose the > synco/mov.li/mov.co opcodes (and hwcap) regardless of the -cpu > setting. I agree with AT_HWCAP and defaulting to SH7785. Aurelien? r~