projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7110d17
)
Refs #165. fall back of DTB_DEFAULT_ENTRIES for some virtual machines.
author
Zhang Xianyi
<traits.zhang@gmail.com>
Mon, 10 Dec 2012 03:51:39 +0000
(11:51 +0800)
committer
Zhang Xianyi
<traits.zhang@gmail.com>
Mon, 10 Dec 2012 03:51:39 +0000
(11:51 +0800)
cpuid_x86.c
patch
|
blob
|
history
diff --git
a/cpuid_x86.c
b/cpuid_x86.c
index
6e4eae2
..
2ffc5f1
100644
(file)
--- a/
cpuid_x86.c
+++ b/
cpuid_x86.c
@@
-1494,6
+1494,9
@@
void get_cpuconfig(void){
printf("#define DTB_SIZE %d\n", info.size * 1024);
printf("#define DTB_ASSOCIATIVE %d\n", info.associative);
printf("#define DTB_DEFAULT_ENTRIES %d\n", info.linesize);
+ } else {
+ //fall back for some virtual machines.
+ printf("#define DTB_DEFAULT_ENTRIES 32\n");
}
features = get_cputype(GET_FEATURE);