File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -139,10 +139,17 @@ procedure ___CallCPUID(const ID: NativeInt; var CPUIDStruct);
139
139
MOV RAX,RCX
140
140
MOV R9,RDX
141
141
CPUID
142
+ { $IFNDEF FPC}
142
143
MOV R9.TCPUIDStruct.rEAX,EAX
143
144
MOV R9.TCPUIDStruct.rEBX,EBX
144
145
MOV R9.TCPUIDStruct.rECX,ECX
145
146
MOV R9.TCPUIDStruct.rEDX,EDX
147
+ { $ELSE FPC}
148
+ MOV [R9].TCPUIDStruct.rEAX,EAX
149
+ MOV [R9].TCPUIDStruct.rEBX,EBX
150
+ MOV [R9].TCPUIDStruct.rECX,ECX
151
+ MOV [R9].TCPUIDStruct.rEDX,EDX
152
+ { $ENDIF !FPC}
146
153
POP RDX
147
154
POP RBX
148
155
POP R9
@@ -160,7 +167,7 @@ function ___IsAVXSupported: Boolean;
160
167
2) Detect CPUID.1:ECX.AVX[bit 28] = 1
161
168
=> AVX instructions supported.
162
169
163
- 3) Issue XGETBV and verify that XCR0[2:1] = ‘11b’
170
+ 3) Issue XGETBV and verify that XCR0[2:1] = ‘11b’
164
171
=> XMM state and YMM state are enabled by OS.
165
172
166
173
}
You can’t perform that action at this time.
0 commit comments