From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.baldwin.cx (bigwig.baldwin.cx [66.216.25.90]) by sourceware.org (Postfix) with ESMTPS id 782153858402 for ; Mon, 9 Oct 2023 18:36:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 782153858402 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=FreeBSD.org Received: from ralph.baldwin.net (unknown [98.47.15.113]) by mail.baldwin.cx (Postfix) with ESMTPSA id 77C961A84E2B; Mon, 9 Oct 2023 14:36:43 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Cc: Willgerodt, Felix , George, Jini Susan , Simon Marchi Subject: [RFC 05/13] nat/x86-cpuid.h: Remove non-x86 fallbacks Date: Mon, 9 Oct 2023 11:36:07 -0700 Message-ID: <20231009183617.24862-6-jhb@FreeBSD.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231009183617.24862-1-jhb@FreeBSD.org> References: <20231009183617.24862-1-jhb@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.4 (mail.baldwin.cx [0.0.0.0]); Mon, 09 Oct 2023 14:36:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.103.1 at mail.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_STATUS,KHOP_HELO_FCRDNS,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This header is only suitable for use on x86 hosts and is only included there, so these fallbacks should not be needed. --- gdb/nat/x86-cpuid.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/gdb/nat/x86-cpuid.h b/gdb/nat/x86-cpuid.h index e1b0321d593..9401705c44d 100644 --- a/gdb/nat/x86-cpuid.h +++ b/gdb/nat/x86-cpuid.h @@ -28,8 +28,6 @@ #define nullptr ((void *) 0) #endif -#if defined(__i386__) || defined(__x86_64__) - /* Return cpuid data for requested cpuid level, as found in returned eax, ebx, ecx and edx registers. The function checks if cpuid is supported and returns 1 for valid cpuid information or 0 for @@ -78,26 +76,6 @@ x86_cpuid_count (unsigned int __level, unsigned int __sublevel, return __get_cpuid_count (__level, __sublevel, __eax, __ebx, __ecx, __edx); } -#else - -static __inline int -x86_cpuid (unsigned int __level, - unsigned int *__eax, unsigned int *__ebx, - unsigned int *__ecx, unsigned int *__edx) -{ - return 0; -} - -static __inline int -x86_cpuid_count (unsigned int __level, unsigned int __sublevel, - unsigned int *__eax, unsigned int *__ebx, - unsigned int *__ecx, unsigned int *__edx) -{ - return 0; -} - -#endif /* i386 && x86_64 */ - #ifndef __cplusplus /* Avoid leaking this local definition beyond the scope of this header file. */ -- 2.41.0