mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 16:00:39 +01:00
[v1.03][RISCV] Add SiFive ascii art
This commit is contained in:
@@ -38,7 +38,6 @@ struct cpuInfo* get_cpu_info(void) {
|
||||
cpu->hv->present = false;
|
||||
cpu->soc = get_soc();
|
||||
cpu->freq = get_frequency_info(0);
|
||||
cpu->cpu_vendor = CPU_VENDOR_RISCV;
|
||||
cpu->peak_performance = get_peak_performance(cpu);
|
||||
|
||||
return cpu;
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
VENDOR get_soc_vendor(struct system_on_chip* soc) {
|
||||
return soc->soc_vendor;
|
||||
}
|
||||
|
||||
char* get_str_process(struct system_on_chip* soc) {
|
||||
char* str;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ struct system_on_chip {
|
||||
|
||||
struct system_on_chip* get_soc(void);
|
||||
char* get_soc_name(struct system_on_chip* soc);
|
||||
//VENDOR get_soc_vendor(struct system_on_chip* soc);
|
||||
VENDOR get_soc_vendor(struct system_on_chip* soc);
|
||||
char* get_str_process(struct system_on_chip* soc);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user