all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob d9cff2cf0436ac8863f87564926b15e9ac80efc9 1014 bytes (raw)
name: gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
From 00774b1105ad5dbfe0e6be671096d51ad4a97b2e Mon Sep 17 00:00:00 2001
From: Martin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Date: Wed, 12 Jul 2017 21:56:23 +0200
Subject: [PATCH 2/2] 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 73b4df6b..103128a3 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.11.0


debug log:

solving d9cff2cf0 ...
found d9cff2cf0 in https://yhetil.org/guix/87r2rm29dy.fsf@albion.it.manchester.ac.uk/

applying [1/1] https://yhetil.org/guix/87r2rm29dy.fsf@albion.it.manchester.ac.uk/
diff --git a/gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch b/gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch
new file mode 100644
index 000000000..d9cff2cf0

1:24: trailing whitespace.
 
1:30: trailing whitespace.
 
1:40: trailing whitespace.
-- 
Checking patch gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch...
1:42: new blank line at EOF.
+
Applied patch gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch cleanly.
warning: 4 lines add whitespace errors.

index at:
100644 d9cff2cf0436ac8863f87564926b15e9ac80efc9	gnu/packages/patches/openblas-Add-dummy-implementation-of-cpuid_count-for-the-CPUI.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.