diff options
| author | rajdakin <rajdakin@gmail.com> | 2024-07-09 08:21:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-09 08:21:21 +0200 |
| commit | 605d5a29c067fa4834340182ab96438673d09a12 (patch) | |
| tree | 3fc4d93603319405ab4a3f7a8c0a59eef1c5d71f /src/core.c | |
| parent | fdc7e9d1e4d4ab0dd7e895645739fd57e416d5e3 (diff) | |
| download | box64-605d5a29c067fa4834340182ab96438673d09a12.tar.gz box64-605d5a29c067fa4834340182ab96438673d09a12.zip | |
Fixes (#1659)
* Replaced some tabs with spaces * Fixed some signedness warnings * Added more debug info * Fixed an improper alignment * [WRAPPEDWAYLAND] Added return statements to wrappers * [EMU] [AVX] Fixed some issues * [ARM DYNAREC] Fixed some minor warnings * [ARM DYNAREC] Removed unused macro arguments * [EMU] Fixed a noisy warning * [ARM DYNAREC] Removed "empty body" warnings * [EMU] Fixed an opcode in dynarec, non-cosim builds * [LA64 DYNAREC] Minor warning fixes * [LA64 DYNAREC] Fixed empty body warnings * [LA64 DYNAREC] Added parenthesis around assignments in if statements * [LA64 DYNAREC] Fixed missing parenthesis in macro definitions * [RV64 DYNAREC] Fixed minor warnings * [RV64 DYNAREC] Fixed wrong/missing parentheses * [WRAPPER] Fixed the WaylandClient callback signatures
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core.c b/src/core.c index 8574ba54..9ea4632b 100644 --- a/src/core.c +++ b/src/core.c @@ -488,13 +488,13 @@ HWCAP2_AFP return; } - if (la64_lbt = (cpucfg2 >> 18) & 0b1) + if ((la64_lbt = (cpucfg2 >> 18) & 0b1)) printf_log(LOG_INFO, " LBT_X86"); - if (la64_lam_bh = (cpucfg2 >> 27) & 0b1) + if ((la64_lam_bh = (cpucfg2 >> 27) & 0b1)) printf_log(LOG_INFO, " LAM_BH"); - if (la64_lamcas = (cpucfg2 >> 28) & 0b1) + if ((la64_lamcas = (cpucfg2 >> 28) & 0b1)) printf_log(LOG_INFO, " LAMCAS"); - if (la64_scq = (cpucfg2 >> 30) & 0b1) + if ((la64_scq = (cpucfg2 >> 30) & 0b1)) printf_log(LOG_INFO, " SCQ"); } #elif defined(RV64) @@ -1278,7 +1278,7 @@ void AddNewLibs(const char* list) } void PrintFlags() { - printf("Environment Variables:\n"); + printf("Environment Variables:\n"); printf(" BOX64_PATH is the box64 version of PATH (default is '.:bin')\n"); printf(" BOX64_LD_LIBRARY_PATH is the box64 version LD_LIBRARY_PATH (default is '.:lib:lib64')\n"); printf(" BOX64_LOG with 0/1/2/3 or NONE/INFO/DEBUG/DUMP to set the printed debug info (level 3 is level 2 + BOX64_DUMP)\n"); @@ -1412,31 +1412,31 @@ void LoadEnvVars(box64context_t *context) if (strcmp(getenv("BOX64_SSE_FLUSHTO0"), "1")==0) { box64_sse_flushto0 = 1; printf_log(LOG_INFO, "BOX64: Direct apply of SSE Flush to 0 flag\n"); - } + } } if(getenv("BOX64_X87_NO80BITS")) { if (strcmp(getenv("BOX64_X87_NO80BITS"), "1")==0) { box64_x87_no80bits = 1; printf_log(LOG_INFO, "BOX64: All 80bits x87 long double will be handle as double\n"); - } + } } if(getenv("BOX64_SYNC_ROUNDING")) { if (strcmp(getenv("BOX64_SYNC_ROUNDING"), "1")==0) { box64_sync_rounding = 1; printf_log(LOG_INFO, "BOX64: Rouding mode with be synced with fesetround/fegetround\n"); - } + } } if(getenv("BOX64_PREFER_WRAPPED")) { if (strcmp(getenv("BOX64_PREFER_WRAPPED"), "1")==0) { box64_prefer_wrapped = 1; printf_log(LOG_INFO, "BOX64: Prefering Wrapped libs\n"); - } + } } if(getenv("BOX64_PREFER_EMULATED")) { if (strcmp(getenv("BOX64_PREFER_EMULATED"), "1")==0) { box64_prefer_emulated = 1; printf_log(LOG_INFO, "BOX64: Prefering Emulated libs\n"); - } + } } if(getenv("BOX64_NOSIGSEGV")) { @@ -1684,7 +1684,7 @@ static void load_rcfiles() char* rcpath = getenv("BOX64_RCFILE"); if(rcpath && FileExist(rcpath, IS_FILE)) - LoadRCFile(rcpath); + LoadRCFile(rcpath); #ifndef TERMUX else if(FileExist("/etc/box64.box64rc", IS_FILE)) LoadRCFile("/etc/box64.box64rc"); |