From 494d9d7a67b65dba1eaa50311297fe4d33396e1d Mon Sep 17 00:00:00 2001
From: Rolf Eike Beer <eike@sf-mail.de>
Date: Wed, 9 Jan 2013 19:31:31 +0100
Subject: [PATCH] SystemInformation: get stepping code on Intel Macs

Change-Id: Ic2354e8f33b9dd2ceb5fb8cdc16102922ebbe72a
---
 SystemInformation.cxx | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/SystemInformation.cxx b/SystemInformation.cxx
index 9cb67d2..ef79626 100644
--- a/SystemInformation.cxx
+++ b/SystemInformation.cxx
@@ -4004,6 +4004,15 @@ bool SystemInformationImplementation::ParseSysCtl()
     len = sizeof(value);
     err = sysctlbyname("machdep.cpu.model", &value, &len, NULL, 0);
     this->ChipID.Model = static_cast< int >( value );
+
+    // Chip Stepping
+    len = sizeof(value);
+    value = 0;
+    err = sysctlbyname("machdep.cpu.stepping", &value, &len, NULL, 0);
+    if (!err)
+      {
+      this->ChipID.Revision = static_cast< int >( value );
+      }
     }
 
   // brand string
-- 
GitLab