Fix some checks

This commit is contained in:
sampletext32 2020-06-04 09:19:56 +03:00 committed by Ivan
parent 9657b3f1d4
commit 437f374bae
5 changed files with 26 additions and 25 deletions

View file

@ -332,14 +332,13 @@ void cpu_thread::operator()()
{ {
thread_ctrl::set_thread_affinity_mask(thread_ctrl::get_affinity_mask(id_type() == 1 ? thread_class::ppu : thread_class::spu)); thread_ctrl::set_thread_affinity_mask(thread_ctrl::get_affinity_mask(id_type() == 1 ? thread_class::ppu : thread_class::spu));
} }
if (g_cfg.core.lower_spu_priority && id_type() == 2)
{
thread_ctrl::set_native_priority(-1);
}
if (id_type() == 2) if (id_type() == 2)
{ {
if (g_cfg.core.lower_spu_priority)
{
thread_ctrl::set_native_priority(-1);
}
// force input/output denormals to zero for SPU threads (FTZ/DAZ) // force input/output denormals to zero for SPU threads (FTZ/DAZ)
_mm_setcsr( _mm_getcsr() | 0x8040 ); _mm_setcsr( _mm_getcsr() | 0x8040 );

View file

@ -1892,7 +1892,7 @@ static void ppu_initialize2(jit_compiler& jit, const ppu_module& module_part, co
} }
} }
legacy::PassManager mpm; //legacy::PassManager mpm;
// Remove unused functions, structs, global variables, etc // Remove unused functions, structs, global variables, etc
//mpm.add(createStripDeadPrototypesPass()); //mpm.add(createStripDeadPrototypesPass());

View file

@ -274,10 +274,10 @@ const auto spu_putllc_tx = build_function_asm<u32(*)(u32 raddr, u64 rtime, const
Label skip = c.newLabel(); Label skip = c.newLabel();
Label next = c.newLabel(); Label next = c.newLabel();
if (utils::has_avx() && !s_tsx_avx) //if (utils::has_avx() && !s_tsx_avx)
{ //{
c.vzeroupper(); // c.vzeroupper();
} //}
// Create stack frame if necessary (Windows ABI has only 6 volatile vector registers) // Create stack frame if necessary (Windows ABI has only 6 volatile vector registers)
c.push(x86::rbp); c.push(x86::rbp);
@ -566,10 +566,10 @@ const auto spu_putlluc_tx = build_function_asm<u32(*)(u32 raddr, const void* rda
Label skip = c.newLabel(); Label skip = c.newLabel();
Label next = c.newLabel(); Label next = c.newLabel();
if (utils::has_avx() && !s_tsx_avx) //if (utils::has_avx() && !s_tsx_avx)
{ //{
c.vzeroupper(); // c.vzeroupper();
} //}
// Create stack frame if necessary (Windows ABI has only 6 volatile vector registers) // Create stack frame if necessary (Windows ABI has only 6 volatile vector registers)
c.push(x86::rbp); c.push(x86::rbp);

View file

@ -69,8 +69,7 @@ LOG_CHANNEL(sys_log, "SYS");
static char* argv[] = {+s_argv0}; static char* argv[] = {+s_argv0};
app.reset(new QApplication{argc, argv}); app.reset(new QApplication{argc, argv});
} }
else
if (!local)
{ {
fprintf(stderr, "RPCS3: %s\n", text.c_str()); fprintf(stderr, "RPCS3: %s\n", text.c_str());
} }

View file

@ -320,15 +320,18 @@ void kernel_explorer::Update()
for (auto&& entry : lv2_types) for (auto&& entry : lv2_types)
{ {
if (entry.node && entry.count) if (entry.node)
{ {
// Append object count if (entry.count)
entry.node->setText(0, entry.node->text(0) + qstr(fmt::format(" (%zu)", entry.count))); {
} // Append object count
else if (entry.node) entry.node->setText(0, entry.node->text(0) + qstr(fmt::format(" (%zu)", entry.count)));
{ }
// Delete node otherwise else
delete entry.node; {
// Delete node otherwise
delete entry.node;
}
} }
} }