diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/include/debug.h | 1 | ||||
| -rwxr-xr-x | src/main.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/debug.h b/src/include/debug.h index 31f84bde..af433dd2 100755 --- a/src/include/debug.h +++ b/src/include/debug.h @@ -18,6 +18,7 @@ extern int arm64_asimd; extern int arm64_aes; extern int arm64_pmull; extern int arm64_crc32; +extern int arm64_atomics; #endif #endif extern int dlsym_error; // log dlsym error diff --git a/src/main.c b/src/main.c index 75aa4918..ec50a1e3 100755 --- a/src/main.c +++ b/src/main.c @@ -49,6 +49,7 @@ int arm64_asimd = 0; int arm64_aes = 0; int arm64_pmull = 0; int arm64_crc32 = 0; +int arm64_atomics = 0; #endif #else //DYNAREC int box64_dynarec = 0; @@ -149,6 +150,8 @@ void GatherDynarecExtensions() arm64_pmull = 1; if(hwcap&HWCAP_AES) arm64_aes = 1; + if(hwcap&HWCAP_ATOMICS) + arm64_atomics = 1; printf_log(LOG_INFO, "Dynarec for ARM64, with extension: ASIMD"); if(arm64_aes) printf_log(LOG_INFO, " AES"); @@ -156,6 +159,8 @@ void GatherDynarecExtensions() printf_log(LOG_INFO, " CRC32"); if(arm64_pmull) printf_log(LOG_INFO, " PMULL"); + if(arm64_atomics) + printf_log(LOG_INFO, " ATOMICS"); printf_log(LOG_INFO, " PageSize:%d\n", box64_pagesize); #endif } |