From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZC83g-0008TR-QW for qemu-devel@nongnu.org; Mon, 06 Jul 2015 11:11:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZC83W-0003Y2-K1 for qemu-devel@nongnu.org; Mon, 06 Jul 2015 11:11:48 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:35393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZC83W-0003Xn-CS for qemu-devel@nongnu.org; Mon, 06 Jul 2015 11:11:38 -0400 Received: by wgjx7 with SMTP id x7so143005089wgj.2 for ; Mon, 06 Jul 2015 08:11:37 -0700 (PDT) Sender: Richard Henderson References: <20150706082535.11980.88013.stgit@PASHA-ISP> <20150706082605.11980.53159.stgit@PASHA-ISP> <559A6EB9.5050005@twiddle.net> <559a77d3.4e58980a.7a073.ffff997eSMTPIN_ADDED_BROKEN@mx.google.com> From: Richard Henderson Message-ID: <559A9AA3.1080501@twiddle.net> Date: Mon, 6 Jul 2015 16:11:31 +0100 MIME-Version: 1.0 In-Reply-To: <559a77d3.4e58980a.7a073.ffff997eSMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 05/11] target-i386: exception handling for FPU instructions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgaluk , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, rth7680@gmail.com, leon.alrae@imgtec.com, agraf@suse.de, aurelien@aurel32.net On 07/06/2015 01:42 PM, Pavel Dovgaluk wrote: >> From: Richard Henderson [mailto:rth7680@gmail.com] On Behalf Of Richard Henderson >> On 07/06/2015 09:26 AM, Pavel Dovgalyuk wrote: >>> @@ -1117,33 +1131,33 @@ void helper_fxsave(CPUX86State *env, target_ulong ptr, int data64) >>> for (i = 0; i < 8; i++) { >>> fptag |= (env->fptags[i] << i); >>> } >>> - cpu_stw_data(env, ptr, env->fpuc); >>> - cpu_stw_data(env, ptr + 2, fpus); >>> - cpu_stw_data(env, ptr + 4, fptag ^ 0xff); >>> + cpu_stw_data_ra(env, ptr, env->fpuc, GETPC()); >>> + cpu_stw_data_ra(env, ptr + 2, fpus, GETPC()); >>> + cpu_stw_data_ra(env, ptr + 4, fptag ^ 0xff, GETPC()); >> >> helper_fxsave and helper_fxrstor ought to have do_* versions just like you did >> for fstenv/fldenv. (I'm working on a patch set that adds xsave/xrstor support >> and I'll need to re-use these functions.) > > Why do_* functions should be in this series? > These changes will look orphaned. No they won't. They'll be called by helper_fxsave. r~