@@ -31,6 +31,7 @@ typedef struct {
uint64_t page_size;
int cache_line_size;
int cpu_count;
+ char cpu_arch_str[128];
char model_str[MAX_CPU_NUMBER][128];
} odp_system_info_t;
@@ -26,7 +26,6 @@
typedef struct {
- const char *cpu_arch_str;
int (*cpuinfo_parser)(FILE *file, odp_system_info_t *sysinfo);
} odp_compiler_info_t;
@@ -291,19 +290,15 @@ static uint64_t arch_cpu_hz_current(int id ODP_UNUSED)
static odp_compiler_info_t compiler_info = {
#if defined __x86_64__ || defined __i386__
- .cpu_arch_str = "x86",
.cpuinfo_parser = cpuinfo_x86
#elif defined __arm__ || defined __aarch64__
- .cpu_arch_str = "arm",
.cpuinfo_parser = cpuinfo_arm
#elif defined __OCTEON__
- .cpu_arch_str = "octeon",
.cpuinfo_parser = cpuinfo_octeon
#elif defined __powerpc__
- .cpu_arch_str = "powerpc",
.cpuinfo_parser = cpuinfo_powerpc
#else