Skip to content

Commit c4b5b66

Browse files
committed
[clang] Fixed x86 cpuid NSC signature
Summary: The signature "Geode by NSC" for NSC vendor is wrong. In lib/Headers/cpuid.h, signature_NSC_edx and signature_NSC_ecx constants are inverted (cpuid signature order is ebx # edx # ecx). Reviewers: teemperor, rsmith, craig.topper Reviewed By: teemperor, craig.topper Subscribers: craig.topper, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D65978 llvm-svn: 368510
1 parent 36cd84b commit c4b5b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Headers/cpuid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#define signature_TM2_ecx 0x3638784d
3939
/* NSC: "Geode by NSC" */
4040
#define signature_NSC_ebx 0x646f6547
41-
#define signature_NSC_edx 0x43534e20
42-
#define signature_NSC_ecx 0x79622065
41+
#define signature_NSC_edx 0x79622065
42+
#define signature_NSC_ecx 0x43534e20
4343
/* NEXGEN: "NexGenDriven" */
4444
#define signature_NEXGEN_ebx 0x4778654e
4545
#define signature_NEXGEN_edx 0x72446e65

0 commit comments

Comments
 (0)