diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-11-01 11:27:36 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-11-01 11:27:36 +0100 |
| commit | 472037cba26d367b0e8b8c33a8890c87d13158c6 (patch) | |
| tree | 5993c2d6965f1cf475744ccb74d8a19c5b5c6817 /src | |
| parent | 1b19d8b909425503653a4d0a18d80989ef8f7666 (diff) | |
| download | box64-472037cba26d367b0e8b8c33a8890c87d13158c6.tar.gz box64-472037cba26d367b0e8b8c33a8890c87d13158c6.zip | |
[ARM64] Check if Atomics are supported (not used yet)
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 } |