Skip to content

Commit 594360c

Browse files
committed
cmd/8c: disable use of prefetch with GO386=387
Fixes #4798. R=ken2 CC=golang-dev https://golang.org/cl/7323061
1 parent 2968e23 commit 594360c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/8c/txt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,9 @@ gprefetch(Node *n)
13961396
{
13971397
Node n1;
13981398

1399+
if(strcmp(getgo386(), "sse2") != 0) // assume no prefetch on old machines
1400+
return;
1401+
13991402
regalloc(&n1, n, Z);
14001403
gmove(n, &n1);
14011404
n1.op = OINDREG;

0 commit comments

Comments
 (0)