diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2023-10-19 18:33:07 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2023-10-19 18:33:07 +0200 |
| commit | 862f31ef1c2bc41aaf924264ff592c638a593d60 (patch) | |
| tree | 74ca011d84ae6e2153d69d3f04f53d72e8777f1e /src | |
| parent | 6643bf869567e5b678ee1cd2980aaf50d8ee4614 (diff) | |
| download | box64-862f31ef1c2bc41aaf924264ff592c638a593d60.tar.gz box64-862f31ef1c2bc41aaf924264ff592c638a593d60.zip | |
[ARM64_DYNAREC] ifdef'd the new HW_CAP tests, to be able to build on older system (for #1033)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 4a6195cc..346556aa 100644 --- a/src/main.c +++ b/src/main.c @@ -367,15 +367,23 @@ HWCAP2_ECV arm64_aes = 1; if(hwcap&HWCAP_ATOMICS) arm64_atomics = 1; + #ifdef HWCAP_USCAT if(hwcap&HWCAP_USCAT) arm64_uscat = 1; + #endif + #ifdef HWCAP_FLAGM if(hwcap&HWCAP_FLAGM) arm64_flagm = 1; + #endif unsigned long hwcap2 = real_getauxval(AT_HWCAP2); + #ifdef HWCAP2_FLAGM2 if(hwcap2&HWCAP2_FLAGM2) arm64_flagm2 = 1; + #endif + #ifdef HWCAP2_FRINT if(hwcap2&HWCAP2_FRINT) arm64_frintts = 1; + #endif #ifdef HWCAP2_AFP if(hwcap2&HWCAP2_AFP) arm64_afp = 1; |