Skip to content

Commit 504b187

Browse files
committed
remove v4 checks for darwin
1 parent 309352d commit 504b187

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/runtime/asm_amd64.s

+13
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ GLOBL bad_proc_msg<>(SB), RODATA, $78
119119
#endif
120120

121121
#ifdef GOAMD64_v3
122+
#define NEED_V3_CHECK
123+
#endif
124+
125+
// Excluding v4 checks on Darwin for now, see CL 285572.
126+
#ifdef GOAMD64_v4
127+
#ifdef GOOS_darwin
128+
#define NEED_V3_CHECK
129+
#endif
130+
#endif
131+
132+
#ifdef NEED_V3_CHECK
122133
#define NEED_MAX_CPUID 0x80000001
123134
#define NEED_FEATURES_CX V3_FEATURES_CX
124135
#define NEED_EXT_FEATURES_CX V3_EXT_FEATURES_CX
@@ -127,12 +138,14 @@ GLOBL bad_proc_msg<>(SB), RODATA, $78
127138
#endif
128139

129140
#ifdef GOAMD64_v4
141+
#ifndef GOOS_darwin
130142
#define NEED_MAX_CPUID 0x80000001
131143
#define NEED_FEATURES_CX V3_FEATURES_CX
132144
#define NEED_EXT_FEATURES_CX V3_EXT_FEATURES_CX
133145
#define NEED_EXT_FEATURES_BX V4_EXT_FEATURES_BX
134146
#define NEED_OS_SUPPORT_AX V4_OS_SUPPORT_AX
135147
#endif
148+
#endif
136149

137150
TEXT runtime·rt0_go(SB),NOSPLIT|TOPFRAME,$0
138151
// copy arguments forward on an even stack

0 commit comments

Comments
 (0)