From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7737 Path: news.gmane.org!not-for-mail From: Aurelien Jarno Newsgroups: gmane.comp.emulators.qemu,gmane.linux.lib.musl.general Subject: Re: Broken SuperH atomics in qemu app-level emulation Date: Thu, 21 May 2015 20:39:32 +0200 Message-ID: <20150521183932.GB8235@aurel32.net> References: <20150518030536.GA14435@brightrain.aerifal.cx> <555CDD96.40701@twiddle.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1432233602 6956 80.91.229.3 (21 May 2015 18:40:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 18:40:02 +0000 (UTC) Cc: Rich Felker , musl@lists.openwall.com, qemu-devel@nongnu.org To: Richard Henderson Original-X-From: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Thu May 21 20:39:56 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 1YvVNn-0004Ce-9t for gceq-qemu-devel@gmane.org; Thu, 21 May 2015 20:39:51 +0200 Original-Received: from localhost ([::1]:59049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvVNm-0003xe-IM for gceq-qemu-devel@gmane.org; Thu, 21 May 2015 14:39:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvVNY-0003uY-Nw for qemu-devel@nongnu.org; Thu, 21 May 2015 14:39:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YvVNX-0008Rc-6r for qemu-devel@nongnu.org; Thu, 21 May 2015 14:39:36 -0400 Original-Received: from hall.aurel32.net ([2001:bc8:30d7:101::1]:51244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YvVNX-0008RY-14 for qemu-devel@nongnu.org; Thu, 21 May 2015 14:39:35 -0400 Original-Received: from weber.rr44.fr ([2001:470:d4ed:0:7e05:7ff:fe0d:f152]) by hall.aurel32.net with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1YvVNV-00050j-1Q; Thu, 21 May 2015 20:39:33 +0200 Original-Received: from aurel32 by weber.rr44.fr with local (Exim 4.85) (envelope-from ) id 1YvVNU-0002Cv-6J; Thu, 21 May 2015 20:39:32 +0200 Mail-Followup-To: Richard Henderson , Rich Felker , musl@lists.openwall.com, qemu-devel@nongnu.org Content-Disposition: inline In-Reply-To: <555CDD96.40701@twiddle.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:bc8:30d7:101::1 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:338024 gmane.linux.lib.musl.general:7737 Archived-At: On 2015-05-20 12:16, Richard Henderson wrote: > 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? I agree, but for linux-user only. In general we should default to the most capable CPU when possible. For the softmmu emulation, QEMU doesn't emulate it fully, but only the instruction set, so we should keep the current default CPU. -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net