diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-07-05 21:57:20 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-07-05 21:57:20 +0200 |
| commit | 8c5752de23ac421025032e405ca3168191ae7a33 (patch) | |
| tree | f25d1b4ea85ad6120f03b42732ab1c29056d5be9 /src | |
| parent | 267bffb0ec2b8afdea35cdc7f2d5983f7cd1566b (diff) | |
| download | box64-8c5752de23ac421025032e405ca3168191ae7a33.tar.gz box64-8c5752de23ac421025032e405ca3168191ae7a33.zip | |
[ARM64_DYNAREC] Made AVX/AVX2 enabled by default, but only for ARM64 Dynarec configs
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c index d4795b5a..8574ba54 100644 --- a/src/core.c +++ b/src/core.c @@ -155,8 +155,13 @@ int box64_sse_flushto0 = 0; int box64_x87_no80bits = 0; int box64_sync_rounding = 0; int box64_sse42 = 1; +#if defined(DYNAREC) && defined(ARM64) +int box64_avx = 1; +int box64_avx2 = 1; +#else int box64_avx = 0; int box64_avx2 = 0; +#endif int fix_64bit_inodes = 0; int box64_dummy_crashhandler = 1; int box64_mapclean = 0; @@ -1082,6 +1087,10 @@ void LoadLogEnv() box64_avx2 = 1; printf_log(LOG_INFO, "Will expose AVX2 capabilities\n"); } + if(!box64_avx) + printf_log(LOG_INFO, "Will not expose AVX capabilities\n"); + if(!box64_avx2) + printf_log(LOG_INFO, "Will not expose AVX2 capabilities\n"); } p = getenv("BOX64_RDTSC_1GHZ"); if(p) { |