From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLwtB-0005Vg-67 for qemu-devel@nongnu.org; Fri, 07 Mar 2014 10:40:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLwt1-0005IT-NV for qemu-devel@nongnu.org; Fri, 07 Mar 2014 10:40:45 -0500 Received: from mail-qc0-x232.google.com ([2607:f8b0:400d:c01::232]:57871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLwt1-0005Hw-Hx for qemu-devel@nongnu.org; Fri, 07 Mar 2014 10:40:35 -0500 Received: by mail-qc0-f178.google.com with SMTP id i8so4770287qcq.23 for ; Fri, 07 Mar 2014 07:40:35 -0800 (PST) Sender: Richard Henderson Message-ID: <5319E86B.9070001@twiddle.net> Date: Fri, 07 Mar 2014 07:40:27 -0800 From: Richard Henderson MIME-Version: 1.0 References: <1394134385-1727-1-git-send-email-peter.maydell@linaro.org> <1394134385-1727-13-git-send-email-peter.maydell@linaro.org> <5319DCD8.9080307@twiddle.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v4 12/21] target-arm: A64: Implement DC ZVA List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Rob Herring , Peter Crosthwaite , Patch Tracking , Michael Matz , Claudio Fontana , Alexander Graf , QEMU Developers , Will Newton , Dirk Mueller , Laurent Desnogues , =?UTF-8?B?QWxleCBCZW5uw6ll?= , "kvmarm@lists.cs.columbia.edu" , Christoffer Dall On 03/07/2014 07:11 AM, Peter Maydell wrote: >> > As a bonus, you'll have accurate exceptions should the access throw, so you >> > don't need to force the save of PC before calling the helper. Which... I don't >> > see you doing, so perhaps there's a bug here at the moment. > Mmm. (In system mode we'll save PC as a side effect of having > an accessfn defined for the DC_ZVA reginfo.) Ah, I see it. I'll note that the GETRA/PC thing can be made to work with any helper. It's just a matter of passing down the outermost helper's retaddr to cpu_restore_state. C.f. target-alpha's dynamic_excp/arith_excp functions. So in theory there's no need for the accessfn to require storing the pc first. r~