This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug ports/10094] New: use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Apr 2009 21:45:00 -0000
- Subject: [Bug ports/10094] New: use of FPU_SETCW or FPU_GETCW causes illegal instruction on armel
- Reply-to: sourceware-bugzilla at sourceware dot org
/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.