Skip to content

Commit 2b6cdc4

Browse files
committed
nat/x86-cpuid.h: Remove non-x86 fallbacks
This header is only suitable for use on x86 hosts and is only included there, so these fallbacks should not be needed. Approved-By: Simon Marchi <[email protected]>
1 parent 43b1a3c commit 2b6cdc4

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

gdb/nat/x86-cpuid.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#define nullptr ((void *) 0)
2929
#endif
3030

31-
#if defined(__i386__) || defined(__x86_64__)
32-
3331
/* Return cpuid data for requested cpuid level, as found in returned
3432
eax, ebx, ecx and edx registers. The function checks if cpuid is
3533
supported and returns 1 for valid cpuid information or 0 for
@@ -78,26 +76,6 @@ x86_cpuid_count (unsigned int __level, unsigned int __sublevel,
7876
return __get_cpuid_count (__level, __sublevel, __eax, __ebx, __ecx, __edx);
7977
}
8078

81-
#else
82-
83-
static __inline int
84-
x86_cpuid (unsigned int __level,
85-
unsigned int *__eax, unsigned int *__ebx,
86-
unsigned int *__ecx, unsigned int *__edx)
87-
{
88-
return 0;
89-
}
90-
91-
static __inline int
92-
x86_cpuid_count (unsigned int __level, unsigned int __sublevel,
93-
unsigned int *__eax, unsigned int *__ebx,
94-
unsigned int *__ecx, unsigned int *__edx)
95-
{
96-
return 0;
97-
}
98-
99-
#endif /* i386 && x86_64 */
100-
10179
#ifndef __cplusplus
10280
/* Avoid leaking this local definition beyond the scope of this header
10381
file. */

0 commit comments

Comments
 (0)