summaryrefslogtreecommitdiff
path: root/cpuid_x86.c
diff options
context:
space:
mode:
authortraits <traits.zhang@gmail.com>2011-09-05 17:37:07 +0800
committertraits <traits.zhang@gmail.com>2011-09-05 17:37:07 +0800
commit9fc6764fa762f896fcfaf9f40d3eb39b53a81c00 (patch)
treefa62912ab17d983852b35b2e8a06307b2675051e /cpuid_x86.c
parent12d77deeee7892d84a0ce862bee4542469ab587f (diff)
downloadopenblas-9fc6764fa762f896fcfaf9f40d3eb39b53a81c00.tar.gz
openblas-9fc6764fa762f896fcfaf9f40d3eb39b53a81c00.tar.bz2
openblas-9fc6764fa762f896fcfaf9f40d3eb39b53a81c00.zip
refs #55. Added DTB_ENTRIES into dynamic arch setting parameters. Now, it can read DTB_ENTRIES on runtime.
Diffstat (limited to 'cpuid_x86.c')
-rw-r--r--cpuid_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpuid_x86.c b/cpuid_x86.c
index 6e3e74f82..b68f53573 100644
--- a/cpuid_x86.c
+++ b/cpuid_x86.c
@@ -1393,7 +1393,7 @@ void get_cpuconfig(void){
if (info.size > 0) {
printf("#define DTB_SIZE %d\n", info.size * 1024);
printf("#define DTB_ASSOCIATIVE %d\n", info.associative);
- printf("#define DTB_ENTRIES %d\n", info.linesize);
+ printf("#define DTB_DEFAULT_ENTRIES %d\n", info.linesize);
}
features = get_cputype(GET_FEATURE);
@@ -1422,7 +1422,7 @@ void get_cpuconfig(void){
features = get_coretype();
if (features > 0) printf("#define CORE_%s\n", corename[features]);
} else {
- printf("#define DTB_ENTRIES 16\n");
+ printf("#define DTB_DEFAULT_ENTRIES 16\n");
printf("#define L1_CODE_SIZE 8192\n");
printf("#define L1_DATA_SIZE 8192\n");
printf("#define L2_SIZE 0\n");