From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWR2v-00022m-Mw for qemu-devel@nongnu.org; Mon, 10 Dec 2018 14:16:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWR2p-0003z5-VA for qemu-devel@nongnu.org; Mon, 10 Dec 2018 14:16:48 -0500 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]:36506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gWR2o-0003xE-U2 for qemu-devel@nongnu.org; Mon, 10 Dec 2018 14:16:43 -0500 Received: by mail-oi1-x243.google.com with SMTP id x23so9939507oix.3 for ; Mon, 10 Dec 2018 11:16:41 -0800 (PST) References: <20181207085635.4291-1-mark.cave-ayland@ilande.co.uk> <20181207085635.4291-4-mark.cave-ayland@ilande.co.uk> From: Richard Henderson Message-ID: <54550637-3a70-722f-a98f-6bd93958b644@linaro.org> Date: Mon, 10 Dec 2018 13:16:37 -0600 MIME-Version: 1.0 In-Reply-To: <20181207085635.4291-4-mark.cave-ayland@ilande.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 3/6] target/ppc: introduce get_cpu_vsr{l, h}() and set_cpu_vsr{l, h}() helpers for VSR register access List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, david@gibson.dropbear.id.au On 12/7/18 2:56 AM, Mark Cave-Ayland wrote: > +static inline void get_vsr(TCGv_i64 dst, int n) > +{ > + tcg_gen_ld_i64(dst, cpu_env, offsetof(CPUPPCState, vsr[n])); > +} > + > +static inline void set_vsr(int n, TCGv_i64 src) > +{ > + tcg_gen_st_i64(src, cpu_env, offsetof(CPUPPCState, vsr[n])); > +} Why isn't this helper still using cpu_vsr[n]? r~