1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

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));
}
if (g_cfg.core.lower_spu_priority && id_type() == 2)
{
thread_ctrl::set_native_priority(-1);
}
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)
_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
//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 next = c.newLabel();
if (utils::has_avx() && !s_tsx_avx)
{
c.vzeroupper();
}
//if (utils::has_avx() && !s_tsx_avx)
//{
// c.vzeroupper();
//}
// Create stack frame if necessary (Windows ABI has only 6 volatile vector registers)
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 next = c.newLabel();
if (utils::has_avx() && !s_tsx_avx)
{
c.vzeroupper();
}
//if (utils::has_avx() && !s_tsx_avx)
//{
// c.vzeroupper();
//}
// Create stack frame if necessary (Windows ABI has only 6 volatile vector registers)
c.push(x86::rbp);

View File

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

View File

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