about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-06-18 17:25:32 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-06-18 17:25:32 +0200
commit4eebf25f1cff9e1308ee57cd4a848ab5e123f261 (patch)
treefc1dfb707e9a614001c4c751f0ca00b9173d9983 /src/tools
parent865ef2ff6eda7741431840334e0c2d87c3faadb6 (diff)
downloadbox64-4eebf25f1cff9e1308ee57cd4a848ab5e123f261.tar.gz
box64-4eebf25f1cff9e1308ee57cd4a848ab5e123f261.zip
Added BOX64_RESERVE_HIGH in rcfile handling
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/rcfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rcfile.c b/src/tools/rcfile.c
index cd1316f4..61ea607f 100644
--- a/src/tools/rcfile.c
+++ b/src/tools/rcfile.c
@@ -121,6 +121,7 @@ ENTRYSTRING_(BOX64_ENV1, new_env1)                      \
 ENTRYSTRING_(BOX64_ENV2, new_env2)                      \
 ENTRYSTRING_(BOX64_ENV3, new_env3)                      \
 ENTRYSTRING_(BOX64_ENV4, new_env4)                      \
+ENTRYBOOL(BOX64_RESERVE_HIGH, new_reserve_high)         \
 
 #ifdef HAVE_TRACE
 #define SUPER2()                                        \
@@ -491,6 +492,7 @@ void openFTrace(const char* newtrace);
 void addNewEnvVar(const char* s);
 void AddNewLibs(const char* libs);
 void computeRDTSC();
+void my_reserveHighMem();
 #ifdef DYNAREC
 void GatherDynarecExtensions();
 #endif
@@ -511,6 +513,7 @@ void ApplyParams(const char* name)
     int new_maxcpu = box64_maxcpu;
     int new_avx = box64_avx2?2:box64_avx;
     int box64_dynarec_jvm = box64_jvm;
+    int new_reserve_high = 0;
     if(!strcmp(name, old_name)) {
         return;
     }
@@ -558,6 +561,8 @@ void ApplyParams(const char* name)
         cycle_log = new_cycle_log;
         initCycleLog(my_context);
     }
+    if(new_reserve_high)
+        my_reserveHighMem();
     if(param->is_new_avx_present) {
         if(!new_avx) {
             printf_log(LOG_INFO, "Hidding AVX extension");