Re: 387 emulator hack - mutant AAD trick - any objections?

From: Mikael Pettersson
Date: Fri May 27 2005 - 02:53:20 EST


cutaway@xxxxxxxxxxxxx writes:
> Will there be any objections to using a quasi-documented mutation of the
> x86's AAD instruction in the 387 emulator? Every CPU around has to do this
> mutation correctly or a LOT of existing code will break...
>
> The performance of storing to user space of BCD numbers in the 387 emulator
> code could be improved significantly by using the mutant AAD instruction
> trick (i.e. alter its implicit base from 10 to 16). See reg_ld_str.c, in
> function FPU_store_bcd()

What do you mean by "quasi-documented" and "mutant"?
Intel certainly documents the "D5 ib" form as being a
valid way to change the base from the default 10.

The only issue AFAIK is that assemblers may only
recognise the plain base-10 AAD syntax. No biggie.

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