From 605d5a29c067fa4834340182ab96438673d09a12 Mon Sep 17 00:00:00 2001 From: rajdakin Date: Tue, 9 Jul 2024 08:21:21 +0200 Subject: 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 --- src/tools/bridge.c | 4 ++-- src/tools/my_cpuid.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/tools') diff --git a/src/tools/bridge.c b/src/tools/bridge.c index 1c935cd1..1c5bde99 100644 --- a/src/tools/bridge.c +++ b/src/tools/bridge.c @@ -99,7 +99,7 @@ uintptr_t AddBridge(bridge_t* bridge, wrapper_t w, void* fnc, int N, const char* mutex_lock(&my_context->mutex_bridge); b = bridge->last; - if(b->sz == NBRICK) { + if(b->sz == (int)NBRICK) { b->next = NewBrick(b->b); b = b->next; bridge->last = b; @@ -202,7 +202,7 @@ uintptr_t AddVSyscall(bridge_t* bridge, int num) int sz = -1; mutex_lock(&my_context->mutex_bridge); b = bridge->last; - if(b->sz == NBRICK) { + if(b->sz == (int)NBRICK) { b->next = NewBrick(b->b); b = b->next; bridge->last = b; diff --git a/src/tools/my_cpuid.c b/src/tools/my_cpuid.c index 65a21a1a..48a163aa 100644 --- a/src/tools/my_cpuid.c +++ b/src/tools/my_cpuid.c @@ -11,7 +11,7 @@ int get_cpuMhz() { - int MHz = 0; + int MHz = 0; char *p = NULL; if((p=getenv("BOX64_CPUMHZ"))) { MHz = atoi(p); @@ -69,11 +69,11 @@ int get_cpuMhz() } } #endif - if(!MHz) - MHz = 1000; // default to 1Ghz... + if(!MHz) + MHz = 1000; // default to 1Ghz... sprintf(cpumhz, "%d", MHz); setenv("BOX64_CPUMHZ", cpumhz, 1); // set actual value - return MHz; + return MHz; } static int nCPU = 0; static double bogoMips = 100.; -- cgit 1.4.1