Skip to contentSkip to conversation

PROBLEM:Illegal instruction when mount nfs file systems using cyr ixIII

DISCUSSION Mikael Pettersson 3 participants 4 messages Jun 27, 2001 – Jun 28, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Frank Zhu

I use a PIII machine as the server and cyrixIII machine as the client.The kernel is 2.4.5.The distribute is red hat 7.1
when i mount the nfs file system at the client it failed.The core file is created.using the gdb it report :
Program terminated with signal 4(SIGILL),Illegal instruction #0 0x40003e28 in ??()

If i change the cpu (CyrixIII) to PIII all is ok.

You don't say exactly where the failure occurs, but I suspect that you're feeding i686-class machine code to your VIA Cyrix III.

The problem is that VIA Cyrix III announces itself (via CPUID) as a "family 6" processor, i.e. i686 compatible. This is not completely accurate, since it doesn't implement the conditional move instruction. [Yeah, I know there's a CPUID feature flag for CMOV. I also know gcc doesn't check it, and I suspect glibc doesn't either.]

To make the machine work you'll have to ensure that the kernel, user-space libraries and programs, and NFS-imported programs all are compiled for a lesser CPU than i686.

/Mikael

#1 lore raw
Quoted 4 lines

The problem is that VIA Cyrix III announces itself (via CPUID) as a "family 6" processor, i.e. i686 compatible. This is not completely accurate, since it doesn't implement the conditional move instruction. [Yeah, I know there's a CPUID feature flag for

Intel specifically state that you cannot use CMOV without checking for it. Its actually a gcc/binutils tool bug. The CPU is right.

Quoted 3 lines

To make the machine work you'll have to ensure that the kernel, user-space libraries and programs, and NFS-imported programs all are compiled for a lesser CPU than i686.

For RH

	rpm -qa |grep ".i686*"

and update the packages listed with their i586/i386 ones.

Alan

#2 lore raw
Quoted 7 lines · Alan Cox
Quoted 4 lines

The problem is that VIA Cyrix III announces itself (via CPUID) as a "family 6" processor, i.e. i686 compatible. This is not completely accurate, since it doesn't implement the conditional move instruction. [Yeah, I know there's a CPUID feature flag for

Intel specifically state that you cannot use CMOV without checking for it. Its actually a gcc/binutils tool bug. The CPU is right.

How is that a gcc bug? You tell the compiler to generate cmov, you run it on a CPU that doesn't have it, you get what you deserve. There's really nothing the tools can do about that.

Bernd

#3 lore raw

Re: PROBLEM:Illegal instruction when mount nfs file systems using

Quoted 6 lines
Quoted 2 lines

Intel specifically state that you cannot use CMOV without checking for it. Its actually a gcc/binutils tool bug. The CPU is right.

How is that a gcc bug? You tell the compiler to generate cmov, you run it on a CPU that doesn't have it, you get what you deserve. There's really nothing the tools can do about that.

I tell gcc to buld for the 'i686' architecture definition. It in fact builds for the i686 architecture assuming an optional feature. Intel's own PPro doc is quite explicit that cmov could go away again in future chips.

So cmov should not have been in the 686 machine definition.

Alan