Received: from eggs.gnu.org ([2001:4830:134:3::10]:37241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZihb-0000O8-Rv for qemu-devel@nongnu.org; Tue, 16 Aug 2016 14:03:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZihV-00072u-QW for qemu-devel@nongnu.org; Tue, 16 Aug 2016 14:03:02 -0400 Sender: Richard Henderson References: <1471348968-4614-1-git-send-email-vijay.kilari@gmail.com> <1471348968-4614-3-git-send-email-vijay.kilari@gmail.com> From: Richard Henderson Message-ID: <0f3abe4d-9640-2cc4-41db-7d5e5924e63d@twiddle.net> Date: Tue, 16 Aug 2016 11:02:52 -0700 MIME-Version: 1.0 In-Reply-To: <1471348968-4614-3-git-send-email-vijay.kilari@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH v2 2/2] utils: Add prefetch for Thunderx platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: vijay.kilari@gmail.com, qemu-arm@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com Cc: p.fedin@samsung.com, qemu-devel@nongnu.org, Prasun.Kapoor@cavium.com, Vijaya Kumar K On 08/16/2016 05:02 AM, vijay.kilari@gmail.com wrote: > +static inline void prefetch_vector_loop(const VECTYPE *p, int index) > +{ > +#if defined(__aarch64__) > + if (is_thunderx_pass2_cpu()) { > + /* Prefetch 4 cache lines ahead from index */ > + VEC_PREFETCH(p, index + (BUFFER_FIND_NONZERO_OFFSET_UNROLL_FACTOR * 4)); > + } > +#endif > +} Oh come now. This is even worse than before. A function call protecting a mere prefetch within the main body of an inner loop? Did you not understand what I was asking for? r~