This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ports/10094] New: use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel


/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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]