about summary refs log tree commit diff stats
path: root/src/core.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-05-26 09:21:04 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-05-26 09:21:04 +0200
commitd09a48fd03466e7160752d8ed17c9df3976d11f9 (patch)
treec862d8ae9e7df0b439645b08ed4e5265c174b908 /src/core.c
parentb5c0a857ca18fa91d0416a35e5ea9c7acf790d79 (diff)
downloadbox64-d09a48fd03466e7160752d8ed17c9df3976d11f9.tar.gz
box64-d09a48fd03466e7160752d8ed17c9df3976d11f9.zip
[INTERPRETER] my first avx opcode
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 48eebd1d..928a056d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -993,6 +993,15 @@ void LoadLogEnv()
         if(!box64_sse42)
             printf_log(LOG_INFO, "Do not expose SSE 4.2 capabilities\n");
     }
+    p = getenv("BOX64_AVX");
+    if(p) {
+        if(strlen(p)==1) {
+            if(p[0]>='0' && p[0]<='0'+1)
+                box64_avx = p[0]-'0';
+        }
+        if(box64_avx)
+            printf_log(LOG_INFO, "Will expose AVX capabilities\n");
+    }
     p = getenv("BOX64_FIX_64BIT_INODES");
     if(p) {
         if(strlen(p)==1) {