Re: Pentium 4 and 2.4/2.5

From: Brian Pomerantz (bapper@piratehaven.org)
Date: Wed Nov 08 2000 - 13:12:48 EST


On Wed, Nov 08, 2000 at 10:10:45AM -0800, Linus Torvalds wrote:
>
> Now, I could imagine that Intel would select an instruction that didn't
> work on Athlon on purpose, but I really don't think they did. I don't
> have an athlon to test.
>
> It's easy enough to generate a test-program. If the following works,
> you're pretty much guaranteed that it's ok
>
> int main()
> {
> printf("Testing 'rep nop' ... ");
> asm volatile("rep ; nop");
> printf("okey-dokey\n");
> return 0;
> }
>
> (there's not much a "rep nop" _can_ do, after all - the most likely CPU
> extension would be to raise an "Illegal Opcode" fault).
>

Just for the curious, this works on Athlons. :)

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



This archive was generated by hypermail 2b29 : Wed Nov 15 2000 - 21:00:12 EST