From 00774b1105ad5dbfe0e6be671096d51ad4a97b2e Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 12 Jul 2017 21:56:23 +0200 Subject: [PATCH] Add dummy implementation of cpuid_count for the CPUIDEMU case --- cpuid_x86.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpuid_x86.c b/cpuid_x86.c index 73b4df6..103128a 100644 --- a/cpuid_x86.c +++ b/cpuid_x86.c @@ -157,6 +157,10 @@ void cpuid(unsigned int op, unsigned int *eax, unsigned int *ebx, unsigned int * *edx = idlist[current].d; } +void cpuid_count (unsigned int op, unsigned int count, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) { + return cpuid (op, eax, ebx, ecx, edx); +} + #endif #endif // _MSC_VER @@ -977,7 +981,6 @@ int get_cacheinfo(int type, cache_info_t *cacheinfo){ } } } - cpuid(0x80000000, &cpuid_level, &ebx, &ecx, &edx); if (cpuid_level >= 0x80000006) { if(L2.size<=0){ -- 2.7.4