mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-20 23:01:51 +00:00
Release version 0.7.0
This commit is contained in:
parent
39506501d5
commit
9574313a76
9 changed files with 52 additions and 20 deletions
|
@ -1,9 +1,9 @@
|
||||||
cmake_minimum_required(VERSION 3.13)
|
cmake_minimum_required(VERSION 3.13)
|
||||||
|
|
||||||
set(VERSION "0.6.5")
|
set(VERSION "0.7.0")
|
||||||
set(LIBCPUID_CURRENT 16)
|
set(LIBCPUID_CURRENT 17)
|
||||||
set(LIBCPUID_AGE 0)
|
set(LIBCPUID_AGE 0)
|
||||||
set(LIBCPUID_REVISION 5)
|
set(LIBCPUID_REVISION 0)
|
||||||
project(
|
project(
|
||||||
cpuid
|
cpuid
|
||||||
LANGUAGES C ASM_MASM
|
LANGUAGES C ASM_MASM
|
||||||
|
|
27
ChangeLog
27
ChangeLog
|
@ -190,3 +190,30 @@ Version 0.6.5 (2024-04-28):
|
||||||
* Support for Intel Meteor Lake, including detection of LP E-Cores
|
* Support for Intel Meteor Lake, including detection of LP E-Cores
|
||||||
* Support for Intel Emerald Rapids-SP
|
* Support for Intel Emerald Rapids-SP
|
||||||
* Support for more AMD Van Gogh
|
* Support for more AMD Van Gogh
|
||||||
|
|
||||||
|
Version 0.7.0 (2024-08-26):
|
||||||
|
* Fix handle leaks in rdmsr.c (#199)
|
||||||
|
* Fix cpuid_get_hypervisor when NULL data is provided (#199)
|
||||||
|
* Prevent intel_fn11 array overruns (#199)
|
||||||
|
* Support for AMD Hawk Point
|
||||||
|
* Support for more AMD Phoenix (8000 series)
|
||||||
|
* Add cpu_clock_by_tsc() function to the library (#124)
|
||||||
|
* Check x86 CPUs MSR support (#185)
|
||||||
|
* Add support for ARM CPUs (AArch32 + AArch64) (#200)
|
||||||
|
* Add cpu_feature_level_t enumerated values for x86 CPUs (#177)
|
||||||
|
* Support up to 4 subleaf entries for CPUID leaf 0x80000026 (#189)
|
||||||
|
* Support for Extended CPU topology subleaf in cpuid_identify_purpose_amd() (#189)
|
||||||
|
* Support CPU purpose for AMD x86 CPUs (#189)
|
||||||
|
* Add cpuid Linux and FreeBSD kernel modules for ARM CPUs
|
||||||
|
* Improve errors handling in cpuid_get_all_raw_data() and cpuid_get_raw_data_core() (#202)
|
||||||
|
* Support get_total_cpus() on DragonFly BSD
|
||||||
|
* Improve set_cpu_affinity() on NetBSD
|
||||||
|
* Fix build on OpenBSD
|
||||||
|
* Improve behavior when CPU affinity cannot be set
|
||||||
|
* Fix a regression in cpuid_tool about arguments doing nothing (like --rdmsr or --cpuid)
|
||||||
|
* Fix a segmentation fault when using --quiet in cpuid_tool
|
||||||
|
* Improve error handling in cpu_identify_all()
|
||||||
|
* Add Python bindings (#197)
|
||||||
|
* Support for AMD Granite Ridge
|
||||||
|
* Support for AMD Strix Point
|
||||||
|
* Detect x2APIC and AVX512 features for AMD x86 CPUs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
AC_INIT([libcpuid CPU Identification library], [0.6.5], [libcpuid-devel@lists.sourceforge.net], [libcpuid])
|
AC_INIT([libcpuid CPU Identification library], [0.7.0], [libcpuid-devel@lists.sourceforge.net], [libcpuid])
|
||||||
AC_CONFIG_SRCDIR([libcpuid/libcpuid.h])
|
AC_CONFIG_SRCDIR([libcpuid/libcpuid.h])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
@ -31,9 +31,10 @@ dnl 16:0:2 Version 0.6.2: DB updates, fix for single-core CPUs
|
||||||
dnl 16:0:3 Version 0.6.3: DB updates, fixes, restore CPU affinity, rename {set,get}_error() to cpuid_{set,get}_error()
|
dnl 16:0:3 Version 0.6.3: DB updates, fixes, restore CPU affinity, rename {set,get}_error() to cpuid_{set,get}_error()
|
||||||
dnl 16:0:4 Version 0.6.4: DB updates, fixes, support for Centaur CPUs (VIA and Zhaoxin)
|
dnl 16:0:4 Version 0.6.4: DB updates, fixes, support for Centaur CPUs (VIA and Zhaoxin)
|
||||||
dnl 16:0:5 Version 0.6.5: DB updates, various improvements, detection of LP E-Cores for Intel CPUs
|
dnl 16:0:5 Version 0.6.5: DB updates, various improvements, detection of LP E-Cores for Intel CPUs
|
||||||
LIBCPUID_CURRENT=16
|
dnl 17:0:0 Version 0.7.0: DB updates, fixes, various improvements, add cpu_clock_by_tsc() function, add support for ARM CPUs, add cpu_feature_level_t enumerated values, add more fields in cpu_raw_data_t (amd_fn80000026h, arm_*)
|
||||||
|
LIBCPUID_CURRENT=17
|
||||||
LIBCPUID_AGE=0
|
LIBCPUID_AGE=0
|
||||||
LIBCPUID_REVISION=5
|
LIBCPUID_REVISION=0
|
||||||
AC_SUBST([LIBCPUID_AGE])
|
AC_SUBST([LIBCPUID_AGE])
|
||||||
AC_SUBST([LIBCPUID_REVISION])
|
AC_SUBST([LIBCPUID_REVISION])
|
||||||
AC_SUBST([LIBCPUID_CURRENT])
|
AC_SUBST([LIBCPUID_CURRENT])
|
||||||
|
|
|
@ -5,7 +5,7 @@ all: libcpuid.lib
|
||||||
ASM = ml64 /nologo
|
ASM = ml64 /nologo
|
||||||
CC = cl.exe /nologo /TC
|
CC = cl.exe /nologo /TC
|
||||||
OPTFLAGS = /MT
|
OPTFLAGS = /MT
|
||||||
DEFINES = /D "VERSION=\"0.6.5\""
|
DEFINES = /D "VERSION=\"0.7.0\""
|
||||||
OBJECTS = masm-x64.obj asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_arm.obj recog_centaur.obj recog_intel.obj rdcpuid.obj rdtsc.obj
|
OBJECTS = masm-x64.obj asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_arm.obj recog_centaur.obj recog_intel.obj rdcpuid.obj rdtsc.obj
|
||||||
|
|
||||||
libcpuid.lib: $(OBJECTS)
|
libcpuid.lib: $(OBJECTS)
|
||||||
|
|
|
@ -12,7 +12,7 @@ all: libcpuid.lib
|
||||||
|
|
||||||
CC = cl.exe /nologo /TC
|
CC = cl.exe /nologo /TC
|
||||||
OPTFLAGS = /MT
|
OPTFLAGS = /MT
|
||||||
DEFINES = /D "VERSION=\"0.6.5\""
|
DEFINES = /D "VERSION=\"0.7.0\""
|
||||||
OBJECTS = asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_arm.obj recog_centaur.obj recog_intel.obj rdcpuid.obj rdtsc.obj
|
OBJECTS = asm-bits.obj cpuid_main.obj libcpuid_util.obj recog_amd.obj recog_arm.obj recog_centaur.obj recog_intel.obj rdcpuid.obj rdtsc.obj
|
||||||
|
|
||||||
libcpuid.lib: $(OBJECTS)
|
libcpuid.lib: $(OBJECTS)
|
||||||
|
|
|
@ -41,7 +41,7 @@ RSC=rc.exe
|
||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
|
||||||
# ADD CPP /nologo /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.6.5\" /YX /FD /c
|
# ADD CPP /nologo /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.7.0\" /YX /FD /c
|
||||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
|
@ -64,7 +64,7 @@ LIB32=link.exe -lib
|
||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Target_Dir ""
|
# PROP Target_Dir ""
|
||||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
|
||||||
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.6.5\" /YX /FD /GZ /c
|
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D VERSION=\"0.7.0\" /YX /FD /GZ /c
|
||||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||||
BSC32=bscmake.exe
|
BSC32=bscmake.exe
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
* \file libcpuid.h
|
* \file libcpuid.h
|
||||||
* \author Veselin Georgiev
|
* \author Veselin Georgiev
|
||||||
* \date Oct 2008
|
* \date Oct 2008
|
||||||
* \version 0.6.5
|
* \version 0.7.0
|
||||||
*
|
*
|
||||||
* Version history:
|
* Version history:
|
||||||
*
|
*
|
||||||
|
@ -79,6 +79,10 @@
|
||||||
* fix build for NetBSD and DragonFly BSD.
|
* fix build for NetBSD and DragonFly BSD.
|
||||||
* * 0.6.5 (2024-04-28): A lot of DB updates, support heterogeneous RAW dumps in cpu_identify_all(),
|
* * 0.6.5 (2024-04-28): A lot of DB updates, support heterogeneous RAW dumps in cpu_identify_all(),
|
||||||
* detection of LP E-Cores for Intel CPUs.
|
* detection of LP E-Cores for Intel CPUs.
|
||||||
|
* * 0.7.0 (2024-08-26): A lot of DB updates, add cpu_clock_by_tsc() function,
|
||||||
|
* add support for ARM CPUs, add cpu_feature_level_t enumerated values,
|
||||||
|
* add more fields in cpu_raw_data_t (amd_fn80000026h, arm_*),
|
||||||
|
* detect x2APIC and AVX512 features for AMD x86 CPUs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @mainpage A simple libcpuid introduction
|
/** @mainpage A simple libcpuid introduction
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<MinimalRebuild>true</MinimalRebuild>
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
</PrecompiledHeader>
|
</PrecompiledHeader>
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|Win32'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
</PrecompiledHeader>
|
</PrecompiledHeader>
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
</PrecompiledHeader>
|
</PrecompiledHeader>
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='ReleaseDLL|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.6.5";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;VERSION="0.7.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
<PrecompiledHeader>
|
<PrecompiledHeader>
|
||||||
</PrecompiledHeader>
|
</PrecompiledHeader>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
PreprocessorDefinitions="VERSION=\"0.6.5\""
|
PreprocessorDefinitions="VERSION=\"0.7.0\""
|
||||||
MinimalRebuild="TRUE"
|
MinimalRebuild="TRUE"
|
||||||
BasicRuntimeChecks="3"
|
BasicRuntimeChecks="3"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
CharacterSet="2">
|
CharacterSet="2">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
PreprocessorDefinitions="VERSION=\"0.6.5\""
|
PreprocessorDefinitions="VERSION=\"0.7.0\""
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
CharacterSet="2">
|
CharacterSet="2">
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
PreprocessorDefinitions="VERSION=\"0.6.5\""
|
PreprocessorDefinitions="VERSION=\"0.7.0\""
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="0"
|
UsePrecompiledHeader="0"
|
||||||
WarningLevel="3"
|
WarningLevel="3"
|
||||||
|
|
Loading…
Reference in a new issue