Skip to content

Commit

Permalink
[v0.97] Fix compilation in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Noob committed Apr 9, 2021
1 parent ecca042 commit ec5f80a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "../arm/midr.h"
#endif

static const char* VERSION = "0.96";
static const char* VERSION = "0.97";

void print_help(char *argv[]) {
const char **t = args_str;
Expand Down
3 changes: 2 additions & 1 deletion src/x86/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ void print_debug(struct cpuInfo* cpu) {
free_cpuinfo_struct(cpu);
}

// TODO: Fix on macOS
// TODO: Query HV and Xeon Phi levels
void print_raw(struct cpuInfo* cpu) {
uint32_t eax;
Expand All @@ -899,10 +898,12 @@ void print_raw(struct cpuInfo* cpu) {
printf("--------------------------------------------------------------\n");

for(int c=0; c < cpu->topo->total_cores; c++) {
#ifndef __APPLE__
if(!bind_to_cpu(c)) {
printErr("Failed binding to CPU %d", c);
return;
}
#endif

printf("CPU %d:\n", c);

Expand Down

0 comments on commit ec5f80a

Please sign in to comment.