From 4f4cd6dbf98a1df64d3bf9f0a1f7c71d527a5b15 Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Sat, 3 Oct 2020 05:42:20 +0100 Subject: [PATCH] fix: ebx -> ecx --- utils/cpuid_amd64.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/cpuid_amd64.go b/utils/cpuid_amd64.go index b3a0541..3f20c01 100644 --- a/utils/cpuid_amd64.go +++ b/utils/cpuid_amd64.go @@ -26,8 +26,8 @@ func init() { _, ecx, _, _ := cpuid(1, 0) X86.HasAES = bitn(ecx, 25) - _, ebx, _, _ := cpuid(7, 0) - X86.HasBMI2 = bitn(ebx, 8) - X86.HasADX = bitn(ebx, 19) - X86.HasRDSEED = bitn(ebx, 18) + _, ecx, _, _ = cpuid(7, 0) + X86.HasBMI2 = bitn(ecx, 8) + X86.HasADX = bitn(ecx, 19) + X86.HasRDSEED = bitn(ecx, 18) }