Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262699AbVAQFrg (ORCPT ); Mon, 17 Jan 2005 00:47:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262701AbVAQFrg (ORCPT ); Mon, 17 Jan 2005 00:47:36 -0500 Received: from mx1.redhat.com ([66.187.233.31]:40125 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S262699AbVAQFre (ORCPT ); Mon, 17 Jan 2005 00:47:34 -0500 Date: Sun, 16 Jan 2005 21:47:28 -0800 Message-Id: <200501170547.j0H5lSvb026665@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Linus Torvalds Cc: Andrew Morton , linux-kernel@vger.kernel.org, Dave Jones Subject: Re: [PATCH] i386/x86_64 fpu: fix x87 tag word simulation using fxsave In-Reply-To: Linus Torvalds's message of Sunday, 16 January 2005 19:48:42 -0800 X-Fcc: ~/Mail/linus Emacs: featuring the world's first municipal garbage collector! Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1163 Lines: 28 > Also, we're not using C++, so we don't do the "const" part of Or C89, apparently. > What happens if it was in MMX mode? I don't really know anything about that stuff, but what the manuals say is that using any MMX instruction resets the tag bits and clears the TOS field. So the patch doesn't change anything for that case (tos == 0). > If I remember correctly, different CPU's do different things for MMX > (some rotate them so that "mmx0" is always the same as "st(0)", some > don't, and/or have separate hw registers altogether for it)? I realize we > don't probably care, I'm just wondering if somebody knows... I don't really know, but I have two flavors of manual in front of me. I suspect you remember incorrectly, or perhaps in the past there was something like that. AFAICT, it's always the case that MMX clears the TOS bits and mmx0 = physical fpr0, which also = st(0) since TOS = 0. Thanks, Roland - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/