From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5pum-00037u-RW for qemu-devel@nongnu.org; Tue, 21 Jan 2014 23:59:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5pug-0001Sz-Tu for qemu-devel@nongnu.org; Tue, 21 Jan 2014 23:59:48 -0500 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:59028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5pug-0001So-Is for qemu-devel@nongnu.org; Tue, 21 Jan 2014 23:59:42 -0500 Received: by mail-pd0-f181.google.com with SMTP id y10so5573693pdj.12 for ; Tue, 21 Jan 2014 20:59:41 -0800 (PST) Message-ID: <52DF502F.8090903@gmail.com> Date: Wed, 22 Jan 2014 12:59:27 +0800 From: Xbing Wang MIME-Version: 1.0 References: <1389984257-6822-1-git-send-email-peter.maydell@linaro.org> <1389984257-6822-7-git-send-email-peter.maydell@linaro.org> <52DECC87.9010503@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 6/8] target-arm: A64: Add integer ops from SIMD 3-same group List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Richard Henderson Cc: Laurent Desnogues , Patch Tracking , Michael Matz , QEMU Developers , Alexander Graf , Claudio Fontana , Dirk Mueller , Will Newton , =?UTF-8?B?QWxleCBCZW5uw6ll?= , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall Making them static makes this function NOT thread-safe (and they're hidden in thousands of lines of codes), there will be boys who want the whole file translate-a64.c to be thread-safe. What do you think? Thanks. - xbing On 01/22/2014 03:53 AM, Peter Maydell wrote: > On 21 January 2014 19:37, Richard Henderson wrote: >> On 01/17/2014 10:44 AM, Peter Maydell wrote: >>> + NeonGenFn *ceqtstfns[3][2] = { >> You want all of these arrays to be static and const: >> >> static NeonGenFn * const ceqtstfns[3][2] = ... > I confess I couldn't figure out the right place to > put the 'const' to placate the compiler :-) > > thanks > -- PMM > >