Skip to content

Commit 04dd2a3

Browse files
committed
fix: remove unsupported PREFETCHW instruction
1 parent 6805389 commit 04dd2a3

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

internal/prefetch/prefetch_amd64.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@ func PrefetchT2(addr unsafe.Pointer)
2828
//
2929
//go:noescape
3030
func PrefetchNTA(addr unsafe.Pointer)
31-
32-
// PrefetchW prefetches data for writing.
33-
// Brings cache line into exclusive state, useful before a write operation.
34-
//
35-
//go:noescape
36-
func PrefetchW(addr unsafe.Pointer)

internal/prefetch/prefetch_amd64.s

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,4 @@ TEXT ·PrefetchNTA(SB), NOSPLIT, $0-8
3333
PREFETCHNTA (AX)
3434
RET
3535

36-
// func PrefetchW(addr unsafe.Pointer)
37-
// Prefetch for write (brings cache line into exclusive state)
38-
TEXT ·PrefetchW(SB), NOSPLIT, $0-8
39-
MOVQ addr+0(FP), AX
40-
PREFETCHW (AX)
41-
RET
36+

internal/prefetch/prefetch_other.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ func PrefetchT2(addr unsafe.Pointer) {}
1515

1616
// PrefetchNTA is a no-op on non-amd64 platforms.
1717
func PrefetchNTA(addr unsafe.Pointer) {}
18-
19-
// PrefetchW is a no-op on non-amd64 platforms.
20-
func PrefetchW(addr unsafe.Pointer) {}

0 commit comments

Comments
 (0)