delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/03/00:10:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 3 May 2003 00:10:28 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Kenn Heinrich <heinrich AT idirect DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: SSE2 priviliged instruction exception
In-Reply-To: <3EB2F202.8080201@idirect.com>
Message-ID: <Pine.GSO.4.44.0305030005250.25128-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 2 May 2003, Kenn Heinrich wrote:

> Hi,
> I couldn't find an answer on Google, so here goes:
>
> I get a privileged instruction exception on a P4 win 2K. The same
> code (and more extensive use of SSE2) executes properly on
> a pentium 4 redhat 8 box. gcc is 3.2
>
> WCPUID shows that my CPU is in fact a Pentium 4 with SSE2.
>
> How do I get this code to work?
> Thanks,
> - Kenn
>
> This is the test code:
>
> #include <xmmintrin.h>
> #include <stdio.h>
> main()
> {
>   __m128 k;
>   k = _mm_setzero_ps();
>   printf("done\n");
> }
>
> and compile it with
>
> gcc -march=pentium4 -msse2

Kenn,

<http://cygwin.com/acronyms/#CYNUX>.  Cygwin is not even an OS.  Cygwin is
an *emulation layer* on top of Windows.  Windows' idea of privileged
instructions likely differs from Linux's.  Try compiling your code with
"-mno-cygwin" -- you will still get that popup.  You might have better
luck asking on a Win2k forum, as this is clearly a Win2k issue.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019