mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v1.06][ARM] Add support for M3 (different cpu_family) (#230)
This commit is contained in:
@@ -412,6 +412,7 @@ struct cpuInfo* get_cpu_info_mach(struct cpuInfo* cpu) {
|
|||||||
cpu->peak_performance = get_peak_performance(cpu);
|
cpu->peak_performance = get_peak_performance(cpu);
|
||||||
}
|
}
|
||||||
else if(cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH ||
|
else if(cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH ||
|
||||||
|
cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH_2 ||
|
||||||
cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH_PRO ||
|
cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH_PRO ||
|
||||||
cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH_MAX) {
|
cpu_family == CPUFAMILY_ARM_EVEREST_SAWTOOTH_MAX) {
|
||||||
fill_cpu_info_everest_sawtooth(cpu, pcores, ecores);
|
fill_cpu_info_everest_sawtooth(cpu, pcores, ecores);
|
||||||
|
|||||||
@@ -21,9 +21,12 @@
|
|||||||
#define CPUFAMILY_ARM_AVALANCHE_BLIZZARD 0xDA33D83D
|
#define CPUFAMILY_ARM_AVALANCHE_BLIZZARD 0xDA33D83D
|
||||||
#endif
|
#endif
|
||||||
// M3 / A16 / A17
|
// M3 / A16 / A17
|
||||||
// https://ratfactor.com/zig/stdlib-browseable2/c/darwin.zig.html
|
// M3: https://ratfactor.com/zig/stdlib-browseable2/c/darwin.zig.html
|
||||||
// https://github.com/Dr-Noob/cpufetch/issues/210
|
// M3_2: https://github.com/Dr-Noob/cpufetch/issues/230
|
||||||
|
// PRO: https://github.com/Dr-Noob/cpufetch/issues/225
|
||||||
|
// MAX: https://github.com/Dr-Noob/cpufetch/issues/210
|
||||||
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH 0x8765EDEA
|
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH 0x8765EDEA
|
||||||
|
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH_2 0xFA33415E
|
||||||
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH_PRO 0x5F4DEA93
|
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH_PRO 0x5F4DEA93
|
||||||
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH_MAX 0x72015832
|
#define CPUFAMILY_ARM_EVEREST_SAWTOOTH_MAX 0x72015832
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user