Skip to content

Commit af28e02

Browse files
committed
[clang] Add vendor identity for Hygon Dhyana processor to cpuid.h
The vendor id is used to determine whether the processor supports hardware CRC32 in the Scudo code. The previous discussion about the patch is in [1], and more information about Hygon Dhyana processor is in[2]. [1]: https://reviews.llvm.org/D62368 [2]: https://git.kernel.org/torvalds/c/c9661c1e80b609cd038db7c908e061f0535804ef Patch by fanjinke (Jinke Fan) Differential Revision: https://reviews.llvm.org/D78874
1 parent 8cb8fe9 commit af28e02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Headers/cpuid.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
#define signature_CYRIX_ebx 0x69727943
2525
#define signature_CYRIX_edx 0x736e4978
2626
#define signature_CYRIX_ecx 0x64616574
27+
/* HYGON: "HygonGenuine" */
28+
#define signature_HYGON_ebx 0x6f677948
29+
#define signature_HYGON_edx 0x6e65476e
30+
#define signature_HYGON_ecx 0x656e6975
2731
/* INTEL: "GenuineIntel" */
2832
#define signature_INTEL_ebx 0x756e6547
2933
#define signature_INTEL_edx 0x49656e69

0 commit comments

Comments
 (0)