fix GCC warnings

This commit is contained in:
oltolm 2024-03-18 17:33:20 +01:00 committed by Megamouse
parent 75b2dfa66d
commit c567c92d4b
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ void cpu_translator::initialize(llvm::LLVMContext& context, llvm::ExecutionEngin
cpu == "tigerlake" || cpu == "tigerlake" ||
cpu == "rocketlake" || cpu == "rocketlake" ||
cpu == "sapphirerapids" || cpu == "sapphirerapids" ||
(cpu.startswith("znver") && cpu != "znver1" && cpu != "znver2" && cpu != "znver3")) (cpu.starts_with("znver") && cpu != "znver1" && cpu != "znver2" && cpu != "znver3"))
{ {
m_use_avx = true; m_use_avx = true;
m_use_fma = true; m_use_fma = true;

View File

@ -5253,7 +5253,7 @@ s64 spu_thread::get_ch_value(u32 ch)
#ifdef __linux__ #ifdef __linux__
const bool reservation_busy_waiting = false; const bool reservation_busy_waiting = false;
#else #else
const bool reservation_busy_waiting = (seed + ((raddr == spurs_addr) ? 50 : 0)) < g_cfg.core.spu_reservation_busy_waiting_percentage; const bool reservation_busy_waiting = (seed + ((raddr == spurs_addr) ? 50u : 0u)) < g_cfg.core.spu_reservation_busy_waiting_percentage;
#endif #endif
for (; !events.count; events = get_events(mask1 & ~SPU_EVENT_LR, true, true)) for (; !events.count; events = get_events(mask1 & ~SPU_EVENT_LR, true, true))