Received: from eggs.gnu.org ([2001:4830:134:3::10]:54977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c2Rxt-00045G-U0 for qemu-devel@nongnu.org; Thu, 03 Nov 2016 20:02:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c2Rxt-0007SA-0o for qemu-devel@nongnu.org; Thu, 03 Nov 2016 20:02:37 -0400 Received: from hall.aurel32.net ([2001:bc8:30d7:100::1]:57067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c2Rxs-0007Nr-RZ for qemu-devel@nongnu.org; Thu, 03 Nov 2016 20:02:36 -0400 Date: Fri, 4 Nov 2016 01:02:24 +0100 From: Aurelien Jarno Message-ID: <20161104000224.3pash35rwsh2lmxl@aurel32.net> References: <1478182068-14082-1-git-send-email-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jvrc5srm3pixfl5i" Content-Disposition: inline In-Reply-To: <1478182068-14082-1-git-send-email-laurent@vivier.eu> Subject: Re: [Qemu-devel] [PATCH v2] target-sh4: add atomic tas List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org, Richard Henderson , John Paul Adrian Glaubitz , Paolo Bonzini --jvrc5srm3pixfl5i Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2016-11-03 15:07, Laurent Vivier wrote: > Implement real atomic tas: >=20 > When (Rn) =3D 0, 1 -> T > Otherwise, 0 -> T > In both cases, 1 -> MSB of (Rn) >=20 > using atomic_fetch_or_i32() and setcondi_i32(). >=20 > Tested with image from: > http://wiki.qemu.org/download/sh-test-0.2.tar.bz2 >=20 > This image contains a "tas_test" that runs without > error with this change. >=20 > Signed-off-by: Laurent Vivier > --- > v2: > - don't use helper but atomic_fetch_or_i32 > Thank you Paolo! Thanks, this look good. I have tried it with my test image, and it doesn't break it. Reviewed-by: Aurelien Jarno Acked-by: Aurelien Jarno I consider this as a bugfix, not a new feature, so that should be fine despite the soft freeze. Do you want me to send a pull request? Aurelien --=20 Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net --jvrc5srm3pixfl5i Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYG9AQAAoJELqceAYd3YybSxAP+wUQ4MyGEAnvj6nv7Ji9j9B/ m3OEJoKcoOm182YUtneeV3+A31gkmSYWc0OyoLuXXvL5wjDmOkgAkzXo0bEq7HAr 8VgkdMrLgn+TDiyfaIehdMDUDWGccC0F+120BlSncaNXuz5CMqvJm7ZSdYOFve5x Rxmg+gDqUeQDgs41XvIrteAOY9rNKCHhyVkTsC6V44cfZkuA0KEVFTJV/v0GZipF iyXhFMa6tVX0sXLpy9iH+HTcy0ZBG2Gfjy6e9n2rwWfDKgkHMBPjVD5zfw0g/i/z 2U2Jg1WVA38dYRMobXJaKafdog6UNsb+j46s+ceOkNMGFJIZpn3Bhhpss7ybkfxj 9sI+FZjum6Jl+0xIzoA32xOGtDflwysp45ytT6Vh6IF3Q7qCyaqyV6X3U785x8GP 8/OnAni94VxhnvBr4S/j8I+lR8Fbpcglci2g5BSEfcDjZyiP4YRVpiWyFP+9VWy1 nBGZE/cpUDMtdZK8ZyEkBiPaCKg5DpAbDi3CllNo1Me1k7AbdluauWgvKgTCXnvV hLLkF/kJhnIOB1giizddTdAaVmAd3biRT7CDwwxtBZB1cteW6+xZqp0ZpZZTKEcL rGIegK+cQKgX6fUucd0Qnj2e47vLnrgrvDwIH6WaVu8vFFffOIYC+P4qobJ2IfZL BNkFxjgaflRroRKto0C3 =fWkU -----END PGP SIGNATURE----- --jvrc5srm3pixfl5i--