From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqINm-0007JJ-8w for qemu-devel@nongnu.org; Tue, 10 Dec 2013 03:09:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqINh-00033B-7M for qemu-devel@nongnu.org; Tue, 10 Dec 2013 03:09:30 -0500 Received: from host-82-135-62-35.customer.m-online.net ([82.135.62.35]:41817 helo=mail.embedded-brains.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqINg-00032t-VJ for qemu-devel@nongnu.org; Tue, 10 Dec 2013 03:09:25 -0500 Message-ID: <52A6CC2D.7070907@embedded-brains.de> Date: Tue, 10 Dec 2013 09:09:17 +0100 From: Sebastian Huber MIME-Version: 1.0 References: <1385474661-8717-1-git-send-email-sebastian.huber@embedded-brains.de> <1385634441-24184-1-git-send-email-sebastian.huber@embedded-brains.de> In-Reply-To: <1385634441-24184-1-git-send-email-sebastian.huber@embedded-brains.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] SPARC: Add and use CPU_FEATURE_CASA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, Fabien Chouteau Hello, would someone please have a look at this. On 2013-11-28 11:27, Sebastian Huber wrote: > The LEON3 processor has support for the CASA instruction which is > normally only available for SPARC V9 processors. Binutils 2.24 > and GCC 4.9 will support this instruction for LEON3. GCC uses it to > generate C11 atomic operations. > > The CAS synthetic instruction uses an ASI of 0x80. If TARGET_SPARC64 i= s > not defined use a supervisor data load/store for an ASI of 0x80 in > helper_ld_asi()/helper_st_asi(). > --- > target-sparc/cpu.c | 3 +- > target-sparc/cpu.h | 4 ++- > target-sparc/helper.h | 4 ++- > target-sparc/ldst_helper.c | 28 +++++++++++++++----------- > target-sparc/translate.c | 47 ++++++++++++++++++++++++++++-------= -------- > 5 files changed, 54 insertions(+), 32 deletions(-) --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=E4ftliche Mitteilung im Sinne des EHUG.