Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build for ARM 64bit (aarch64) architecture #73

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ case $target in
x86_64-*-*|amd64-*-*)
have_x86_64=true
;;
arm*-*-*)
arm*-*-*|aarch64-*-*)
have_arm=true
;;
esac
Expand Down
4 changes: 2 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ static void signal_handler(int sig) {
}
#endif

#ifndef __arm__
#if !(defined __arm__) && !(defined __aarch64__)
static inline int cpuid(int code, uint32_t where[4]) {
asm volatile("cpuid":"=a"(*where),"=b"(*(where+1)),
"=c"(*(where+2)),"=d"(*(where+3)):"a"(code));
Expand All @@ -1828,7 +1828,7 @@ static inline int cpuid(int code, uint32_t where[4]) {

static bool has_aes_ni()
{
#ifdef __arm__
#if (defined __arm__) || (defined __aarch64__)
return false;
#else
uint32_t cpu_info[4];
Expand Down