Re: [alpha] cleanup opDEC workaround

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Tue, 20 Nov 2001 20:51:05 +0300


On Tue, Nov 20, 2001 at 09:08:18AM -0800, Richard Henderson wrote:
> Oh, it depended on this one.

Ok, but with opDEC_fix = 8 we actually skip to addt/stt, so that asm
probably should be rearranged to

"fmov $f31, $f0\n\t"
"cvttq/svm $f31, $f31\n\t"
"addt $f31, $f31, $f31\n\t"
"cmpteq $f31, $f31, $f0\n\t"
"stt $f0, %0"

Further, if fp emulation isn't compiled in, we'll have kernel mode
instruction fault. A quick fix appears to be

regs.pc += opDEC_fix;
+ if (opDEC_fix == 8)
+ return;

Did I missed something?

Ivan.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/