8
8
#include < unistd.h>
9
9
#endif // _WIN32
10
10
11
- int32_t get_masked (int32_t val, int32_t h, int32_t l)
11
+ // Mask bits between h and l and return the value
12
+ // This enables us to put in values exactly like in the manual
13
+ // For example EBX[31:22] is get_masked(cpu_info[1], 31, 22)
14
+ inline int32_t get_masked (int32_t val, int32_t h, int32_t l)
12
15
{
13
16
val &= (0x7FFFFFFF >> (31 -(h-l))) << l;
14
17
return val >> l;
@@ -34,15 +37,15 @@ class autoAdjust
34
37
35
38
if (L3KB_size < 1024 || L3KB_size > 102400 )
36
39
{
37
- printer::inst ()->print_msg (L0, " Autoconf failed: L3 size sanity check failed %u ." , L3KB_size);
40
+ printer::inst ()->print_msg (L0, " Autoconf failed: L3 size sanity check failed - %u KB ." , L3KB_size);
38
41
return ;
39
42
}
40
43
41
- printer::inst ()->print_msg (L0, " Autoconf L3 size detected at %u." , L3KB_size);
44
+ printer::inst ()->print_msg (L0, " Autoconf L3 size detected at %u KB ." , L3KB_size);
42
45
43
46
detectCPUConf ();
44
47
45
- printer::inst ()->print_msg (L0, " Autoconf cores detected at %u on %s." , corecnt,
48
+ printer::inst ()->print_msg (L0, " Autoconf core count detected as %u on %s." , corecnt,
46
49
linux_layout ? " Linux" : " Windows" );
47
50
48
51
printer::inst ()->print_str (" \n **************** Copy&Paste ****************\n\n " );
0 commit comments