From owner-freebsd-hackers Wed Jun 20 7:58: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from seldon.dtek.chalmers.se (seldon.dtek.chalmers.se [129.16.30.6]) by hub.freebsd.org (Postfix) with ESMTP id 2960A37B407 for ; Wed, 20 Jun 2001 07:57:48 -0700 (PDT) (envelope-from d95hjort@dtek.chalmers.se) Received: from bort.dtek.chalmers.se (Ob7wtfigZ28yu664NvnVCLz9QfQ3U7s5@bort.dtek.chalmers.se [129.16.30.58]) by seldon.dtek.chalmers.se (8.8.8/8.8.8) with ESMTP id QAA01745; Wed, 20 Jun 2001 16:56:36 +0200 (MEST) Received: (from d95hjort@localhost) by bort.dtek.chalmers.se (8.9.3/8.9.3) id QAA14610; Wed, 20 Jun 2001 16:56:34 +0200 (MEST) Date: Wed, 20 Jun 2001 16:56:34 +0200 From: H}kan Hjort To: Michel LESPINASSE Cc: Guenter Bartsch , FreeBSD Hackers , xine-dev Subject: Re: [xine-devel] FreeBSD 4.3 pthread implementation and FPU code Message-ID: <20010620165634.A14574@bort.dtek.chalmers.se> References: <20010620021038.B7068@zoy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <20010620021038.B7068@zoy.org>; from walken@zoy.org on Wed, Jun 20, 2001 at 02:10:38AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wed Jun 20 2001, Michel LESPINASSE wrote: > Guenter, > > This code flips one bit in the eflags register, checking for the > presense of the cpuid instruction. I'm not sure at all why this would > have any side effects on any processor/OS combination - theorically > there should be none... However H}kan had (if I remember right) > already reported a problem with this cpu detection routine too. > > Can you try the updated code I put in mpeg2dec-cvs (basically I added > one pushfl/popfl combo to avoid the bit change) and see if it helps ? > > Also H}kan can you refresh me on the problem you had with this routine > and does the code update fix it ? > I added a call to the cpu detection routine in ac3dec.new, no other changes. This was just to have this information available for future development. After doing this ac3dec would only produce static noice. So I gather that there was some problem with using normal FPU instructions after runnning the routine. At first I though adding an emms instruction would fix the problem, but it did not. -- Håkan Hjort d95hjort@dtek.chalmers.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message