about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 3ccbb85e..e8b14024 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1152,6 +1152,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf
     }
     #ifdef BOX32
     box64_is32bits = FileIsX86ELF(my_context->fullpath);
+    #if !defined(RV64) && !defined(LA64)
     // try to switch personality, but only if not already tried
     if(box64_is32bits) {
         int tried = getenv("BOX32_PERSONA32BITS")?1:0;
@@ -1175,6 +1176,7 @@ int initialize(int argc, const char **argv, char** env, x64emu_t** emulator, elf
             }
         }
     }
+    #endif
     if(box64_is32bits) {
         printf_log(LOG_INFO, "Using Box32 to load 32bits elf\n");
         loadProtectionFromMap();