diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-10-18 17:46:31 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-10-18 17:46:31 +0200 |
| commit | c9177ec2596044fcfce619994a94c41228285bbe (patch) | |
| tree | 4a06b4535e0f690ae1e1e0ef7f6cd565d5a902a8 /src/main.c | |
| parent | 0481589615582cfd7ef737ac90ccb9a9a19f3d41 (diff) | |
| download | box64-c9177ec2596044fcfce619994a94c41228285bbe.tar.gz box64-c9177ec2596044fcfce619994a94c41228285bbe.zip | |
[ARM64_DYNAREC] Preparing handling of FLAGM and FLAGM2 extensions
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 8fde0052..d0f01e2b 100644 --- a/src/main.c +++ b/src/main.c @@ -76,6 +76,7 @@ int arm64_aes = 0; int arm64_pmull = 0; int arm64_crc32 = 0; int arm64_atomics = 0; +int arm64_flagm = 0; #elif defined(RV64) int rv64_zba = 0; int rv64_zbb = 0; @@ -362,6 +363,11 @@ HWCAP2_ECV arm64_aes = 1; if(hwcap&HWCAP_ATOMICS) arm64_atomics = 1; + if(hwcap&HWCAP_FLAGM) + arm64_flagm = 1; + unsigned long hwcap2 = real_getauxval(AT_HWCAP2); + if(hwcap2&HWCAP2_FLAGM2) + arm64_flagm2 = 1; printf_log(LOG_INFO, "Dynarec for ARM64, with extension: ASIMD"); if(arm64_aes) printf_log(LOG_INFO, " AES"); @@ -371,6 +377,10 @@ HWCAP2_ECV printf_log(LOG_INFO, " PMULL"); if(arm64_atomics) printf_log(LOG_INFO, " ATOMICS"); + if(arm64_flagm) + printf_log(LOG_INFO, " FLAGM"); + if(arm64_flagm2) + printf_log(LOG_INFO, " FLAGM2"); printf_log(LOG_INFO, " PageSize:%zd ", box64_pagesize); #elif defined(LA464) printf_log(LOG_INFO, "Dynarec for LoongArch"); |