Browse Source

Refs #165. fall back of DTB_DEFAULT_ENTRIES for some virtual machines.

tags/v0.2.6
Zhang Xianyi 13 years ago
parent
commit
bb10cb8442
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cpuid_x86.c

+ 3
- 0
cpuid_x86.c View File

@@ -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);


Loading…
Cancel
Save