Subject: Re: Fast memcpy(3) making use of MMX instructions
To: None <tech-perform@netbsd.org>
From: Andreas Persson <pap.is@home.se>
List: tech-perform
Date: 08/18/2001 11:59:46
On Sat, Aug 18, 2001 at 11:23:35AM +0900, Bang Jun-Young <bjy@mogua.org> wrote:
>I suspect your machine is not Pentium III (or 4?). Prefetch
>instructions `prefetch*' were introduced in Pentium III and
>cause invalid opcode exception on earlier machines.
cpu0: Intel Pentium III (Coppermine) (686-class), 804.06 MHz
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 2-way
cpu0: L2 cache 256 KB 32b/line 8-way
cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 387f9ff<PGE,MCA,CMOV,FGPAT,PSE36,PN,MMX,FXSR,SSE>

The gas prefetch instruction is the AMD one (encoded as 0f 0d 46/86). The
intel prefetch instructions (prefetcht0, prefetcht1, prefetcht2 and
prefetchnta, encoded as 0f 18 /[0123]) all work fine.

>
>Jun-Young
>
>-- 
>Bang Jun-Young <bjy@mogua.org>
>

-- 
Andreas Persson
pap.is@home.se