From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:41658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzHjc-0004aK-JK for qemu-devel@nongnu.org; Thu, 28 Feb 2019 04:12:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzHjb-0004zs-QS for qemu-devel@nongnu.org; Thu, 28 Feb 2019 04:12:08 -0500 References: <20190226113915.20150-1-david@redhat.com> <20190226113915.20150-30-david@redhat.com> <3c7484d3-4bea-61f7-eee9-234e0750bba9@linaro.org> From: David Hildenbrand Message-ID: <43079e6e-00f1-0d51-f70e-325be1d50295@redhat.com> Date: Thu, 28 Feb 2019 10:11:57 +0100 MIME-Version: 1.0 In-Reply-To: <3c7484d3-4bea-61f7-eee9-234e0750bba9@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 29/33] s390x/tcg: Implement VECTOR STORE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Cornelia Huck , Thomas Huth , Richard Henderson On 28.02.19 00:46, Richard Henderson wrote: > On 2/26/19 3:39 AM, David Hildenbrand wrote: >> +static DisasJumpType op_vst(DisasContext *s, DisasOps *o) >> +{ >> + /* >> + * FIXME: On exceptions we must not modify any memory. >> + */ >> + store_vec_element(s, get_field(s->fields, v1), 0, o->addr1, MO_64); >> + gen_addi_and_wrap_i64(s, o->addr1, o->addr1, 8); >> + store_vec_element(s, get_field(s->fields, v1), 1, o->addr1, MO_64); >> + return DISAS_NEXT; > > Should handle alignment though. Again, as unaligned access must not trigger an exception, I don't think we can use MO_ALIGN. > > FWIW, there is a probe_write function that can be called to make sure a region > is writable before actually accessing it. But this is common enough that we > should probably just handle 16-byte quantities as a native tcg type. That would make most sense. It won't help for the VECTOR_STORE_MULTIPLE part, though. I'll keep it as is for now. Thanks! > > Reviewed-by: Richard Henderson > > > r~ > -- Thanks, David / dhildenb