[v0.98][PPC] Start PowerPC port. It just compiles but nothing is displayed

This commit is contained in:
Dr-Noob
2021-07-27 20:26:17 +02:00
parent 7afb6fd0fe
commit f4aa335af1
10 changed files with 200 additions and 10 deletions

View File

@@ -94,7 +94,9 @@ struct features {
bool SSE4_2;
bool FMA3;
bool FMA4;
bool SHA;
bool SHA;
#elif ARCH_PPC
bool altivec;
#elif ARCH_ARM
bool NEON;
bool SHA1;
@@ -111,7 +113,12 @@ struct cpuInfo {
struct cache* cach;
struct topology* topo;
struct features* feat;
#ifdef ARCH_PPC
// CPU name from model
char* cpu_name;
#endif
#ifdef ARCH_X86
// CPU name from model
char* cpu_name;
@@ -142,6 +149,10 @@ char* get_str_sockets(struct topology* topo);
uint32_t get_nsockets(struct topology* topo);
#endif
#ifdef ARCH_PPC
char* get_str_cpu_name(struct cpuInfo* cpu);
#endif
VENDOR get_cpu_vendor(struct cpuInfo* cpu);
int64_t get_freq(struct frequency* freq);