public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/10094] New: use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel
@ 2009-04-23 21:45 aurelien at aurel32 dot net
  2009-04-23 22:24 ` [Bug ports/10094] " joseph at codesourcery dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: aurelien at aurel32 dot net @ 2009-04-23 21:45 UTC (permalink / raw)
  To: glibc-bugs

/usr/include/fpu_control.h on ARM EABI defines FPU_[SG]ETCW as VFP
coprocessor instructions, whereas armel is soft-float.

#define _FPU_GETCW(cw) \
  __asm__ __volatile__ ("mrc p10, 7, %0, cr1, cr0, 0" : "=r" (cw))
/* This is fmxr fpscr, %0.  */
#define _FPU_SETCW(cw) \
  __asm__ __volatile__ ("mcr p10, 7, %0, cr1, cr0, 0" : : "r" (cw))

This causes an illegal instruction trap on hardware that does not have a VFP 
unit.

-- 
           Summary: use of FPU_SETCW or FPU_GETCW causes illegal instruction
                    on armel
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
        AssignedTo: roland at gnu dot org
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: armv5tejl-unknown-linux-gnueabi
  GCC host triplet: armv5tejl-unknown-linux-gnueabi
GCC target triplet: armv5tejl-unknown-linux-gnueabi


http://sourceware.org/bugzilla/show_bug.cgi?id=10094

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-10094-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-01 20:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-23 21:45 [Bug ports/10094] New: use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel aurelien at aurel32 dot net
2009-04-23 22:24 ` [Bug ports/10094] " joseph at codesourcery dot com
2009-04-24  9:43 ` aurelien at aurel32 dot net
2009-04-24  9:44 ` aurelien at aurel32 dot net
2009-04-24 11:21 ` joseph at codesourcery dot com
2009-04-24 19:13 ` aurelien at aurel32 dot net
2009-04-25  8:19 ` aurelien at aurel32 dot net
2009-04-25  8:20 ` aurelien at aurel32 dot net
2009-04-25  8:20 ` aurelien at aurel32 dot net
2009-04-25 15:25 ` jsm28 at gcc dot gnu dot org
     [not found] <bug-10094-131@http.sourceware.org/bugzilla/>
2014-07-01 20:37 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).