diff options
| -rw-r--r-- | docs/USAGE.md | 3 | ||||
| -rw-r--r-- | docs/box64.pod | 5 | ||||
| -rw-r--r-- | docs/gen/usage.json | 7 | ||||
| -rw-r--r-- | src/include/env.h | 4 |
4 files changed, 13 insertions, 6 deletions
diff --git a/docs/USAGE.md b/docs/USAGE.md index 09864519..23e9ea0f 100644 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -188,6 +188,7 @@ Set the folder for DynaCache files. Default is $XDG_CACHE_HOME/box64 or $HOME/.c Minimum size, in KB, for a DynaCache to be written to disk. Default size is 350KB * XXXX: Set a minimum size of XXXX KB of Dynarec code to write the dynacache to disk. Will not be saved to disk else. + * 350: A size of 350 KB is the default value. [Default] ### BOX64_MMAP32 @@ -342,7 +343,7 @@ Add --no-sandbox argument to the guest program. ### BOX64_AVX -Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 because it's fully implemented in DynaRec, 0 otherwise. Availble in WowBox64. +Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 and LoongArch64 because it's fully implemented in DynaRec, 0 otherwise. Availble in WowBox64. * 0: Do not expose AVX capabilities. * 1: Expose AVX, BMI1, F16C and VAES extensions to CPUID and cpuinfo file. diff --git a/docs/box64.pod b/docs/box64.pod index 45e7336a..0799422f 100644 --- a/docs/box64.pod +++ b/docs/box64.pod @@ -75,7 +75,7 @@ Arguments to pass to the guest program, only valid if there is no existing argum =item B<BOX64_AVX> =I<0|1|2> -Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 because it's fully implemented in DynaRec, 0 otherwise. Availble in WowBox64. +Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 and LoongArch64 because it's fully implemented in DynaRec, 0 otherwise. Availble in WowBox64. * 0 : Do not expose AVX capabilities. * 1 : Expose AVX, BMI1, F16C and VAES extensions to CPUID and cpuinfo file. @@ -397,11 +397,12 @@ Set the folder for DynaCache files. Default is $XDG_CACHE_HOME/box64 or $HOME/.c * XXXX : Use folder XXXX for DynaCache files. -=item B<BOX64_DYNACACHE_MIN> =I<XXXX> +=item B<BOX64_DYNACACHE_MIN> =I<XXXX|350> Minimum size, in KB, for a DynaCache to be written to disk. Default size is 350KB * XXXX : Set a minimum size of XXXX KB of Dynarec code to write the dynacache to disk. Will not be saved to disk else. + * 350 : A size of 350 KB is the default value. [Default] =item B<BOX64_EMULATED_LIBS> =I<XXXX|XXXX:YYYY:ZZZZ> diff --git a/docs/gen/usage.json b/docs/gen/usage.json index 8da1238b..03e4f041 100644 --- a/docs/gen/usage.json +++ b/docs/gen/usage.json @@ -55,7 +55,7 @@ }, { "name": "BOX64_AVX", - "description": "Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 because it's fully implemented in DynaRec, 0 otherwise.", + "description": "Expose AVX extension to CPUID and cpuinfo file. Default value is 2 on Arm64 and LoongArch64 because it's fully implemented in DynaRec, 0 otherwise.", "category": "Compatibility", "wine": true, "options": [ @@ -847,6 +847,11 @@ "key": "XXXX", "description": "Set a minimum size of XXXX KB of Dynarec code to write the dynacache to disk. Will not be saved to disk else.", "default": false + }, + { + "key": "350", + "description": "A size of 350 KB is the default value.", + "default": true } ] }, diff --git a/src/include/env.h b/src/include/env.h index a1a1719a..f11dcad9 100644 --- a/src/include/env.h +++ b/src/include/env.h @@ -128,9 +128,9 @@ extern char* ftrace_name; BOOLEAN(BOX64_X87_NO80BITS, x87_no80bits, 0, 1) \ INTEGER(BOX64_DYNACACHE, dynacache, 2, 0, 2, 0) \ STRING(BOX64_DYNACACHE_FOLDER, dynacache_folder, 0) \ - INTEGER(BOX64_DYNACACHE_MIN, dynacache_min, 350, 0, 10240, 0) \ + INTEGER(BOX64_DYNACACHE_MIN, dynacache_min, 350, 0, 10240, 0) -#ifdef ARM64 +#if defined(ARM64) || defined(LA64) #define ENVSUPER2() \ INTEGER(BOX64_AVX, avx, 2, 0, 2, 1) #else |