Skip to contentSkip to conversation

FPU-intensive programs crashing with floating point exception on Cyrix MII

DISCUSSION Chuck Ebbert 2 participants 2 messages Aug 17, 2005 – Aug 18, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines · Ondrej Zary

When I run a program that uses FPU, it sometimes crashes with "flaoting point exception"

+ printk("MATH ERROR %d\n",((~cwd) & swd & 0x3f) | (swd & 0x240));

Could you modify this to print the full values of cwd and swd like this?

        printk("MATH ERROR: cwd = 0x%hx, swd = 0x%hx\n", cwd, swd);

Then post the result.

__
Chuck

#1 lore raw
Quoted 7 lines · Chuck Ebbert
Quoted 1 line · Ondrej Zary

When I run a program that uses FPU, it sometimes crashes with "flaoting point exception"

Quoted 8 lines
Quoted 1 line

+ printk("MATH ERROR %d\n",((~cwd) & swd & 0x3f) | (swd & 0x240));

Could you modify this to print the full values of cwd and swd like this?

        printk("MATH ERROR: cwd = 0x%hx, swd = 0x%hx\n", cwd, swd);

Then post the result.

MATH ERROR: cwd = 0x37f, swd = 0x5020 MATH ERROR: cwd = 0x37f, swd = 0x20 MATH ERROR: cwd = 0x37f, swd = 0x20 MATH ERROR: cwd = 0x37f, swd = 0x2020 MATH ERROR: cwd = 0x37f, swd = 0x20 MATH ERROR: cwd = 0x37f, swd = 0x1820 MATH ERROR: cwd = 0x37f, swd = 0x1820 MATH ERROR: cwd = 0x37f, swd = 0x2020 MATH ERROR: cwd = 0x37f, swd = 0x20 MATH ERROR: cwd = 0x37f, swd = 0x2800 MATH ERROR: cwd = 0x37f, swd = 0x1820 MATH ERROR: cwd = 0x37f, swd = 0x820 MATH ERROR: cwd = 0x37f, swd = 0x2820 MATH ERROR: cwd = 0x37f, swd = 0x2820 MATH ERROR: cwd = 0x37f, swd = 0x1820 MATH ERROR: cwd = 0x37f, swd = 0x820 MATH ERROR: cwd = 0x37f, swd = 0x1a20

Running prime95 for almost 2 hours:
Torture Test ran 1 hours, 54 minutes - 0 errors, 0 warnings. and playing some mpeg clips.

Signature · 1 line
Ondrej Zary