@@ -46,6 +46,7 @@ size_t length64=sizeof(value64);
46
46
#define CPU_NEOVERSEN1 11
47
47
#define CPU_NEOVERSEV1 16
48
48
#define CPU_NEOVERSEN2 17
49
+ #define CPU_NEOVERSEV2 24
49
50
#define CPU_CORTEXX1 18
50
51
#define CPU_CORTEXX2 19
51
52
#define CPU_CORTEXA510 20
@@ -91,7 +92,8 @@ static char *cpuname[] = {
91
92
"CORTEXA510" ,
92
93
"CORTEXA710" ,
93
94
"FT2000" ,
94
- "CORTEXA76"
95
+ "CORTEXA76" ,
96
+ "NEOVERSEV2"
95
97
};
96
98
97
99
static char * cpuname_lower [] = {
@@ -118,7 +120,8 @@ static char *cpuname_lower[] = {
118
120
"cortexa510" ,
119
121
"cortexa710" ,
120
122
"ft2000" ,
121
- "cortexa76"
123
+ "cortexa76" ,
124
+ "neoversev2"
122
125
};
123
126
124
127
int get_feature (char * search )
@@ -213,6 +216,8 @@ int detect(void)
213
216
return CPU_CORTEXX2 ;
214
217
else if (strstr (cpu_part , "0xd4e" )) //X3
215
218
return CPU_CORTEXX2 ;
219
+ else if (strstr (cpu_part , "0xd4f" )) //NVIDIA Grace et al.
220
+ return CPU_NEOVERSEV2 ;
216
221
else if (strstr (cpu_part , "0xd0b" ))
217
222
return CPU_CORTEXA76 ;
218
223
}
@@ -425,6 +430,23 @@ void get_cpuconfig(void)
425
430
printf ("#define DTB_DEFAULT_ENTRIES 48\n" );
426
431
printf ("#define DTB_SIZE 4096\n" );
427
432
break ;
433
+ case CPU_NEOVERSEV2 :
434
+ printf ("#define ARMV9\n" );
435
+ printf ("#define %s\n" , cpuname [d ]);
436
+ printf ("#define L1_CODE_SIZE 65536\n" );
437
+ printf ("#define L1_CODE_LINESIZE 64\n" );
438
+ printf ("#define L1_CODE_ASSOCIATIVE 4\n" );
439
+ printf ("#define L1_DATA_SIZE 65536\n" );
440
+ printf ("#define L1_DATA_LINESIZE 64\n" );
441
+ printf ("#define L1_DATA_ASSOCIATIVE 4\n" );
442
+ printf ("#define L2_SIZE 1048576\n" );
443
+ printf ("#define L2_LINESIZE 64\n" );
444
+ printf ("#define L2_ASSOCIATIVE 8\n" );
445
+ // L1 Data TLB = 48 entries
446
+ // L2 Data TLB = 2048 entries
447
+ printf ("#define DTB_DEFAULT_ENTRIES 48\n" );
448
+ printf ("#define DTB_SIZE 4096\n" ); // Set to 4096 for symmetry with other configs.
449
+ break ;
428
450
case CPU_CORTEXA510 :
429
451
case CPU_CORTEXA710 :
430
452
case CPU_CORTEXX1 :
0 commit comments