mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Fix some checks
This commit is contained in:
parent
9657b3f1d4
commit
437f374bae
5 changed files with 26 additions and 25 deletions
|
@ -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 (id_type() == 2)
|
||||||
if (g_cfg.core.lower_spu_priority && id_type() == 2)
|
{
|
||||||
|
if (g_cfg.core.lower_spu_priority)
|
||||||
{
|
{
|
||||||
thread_ctrl::set_native_priority(-1);
|
thread_ctrl::set_native_priority(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id_type() == 2)
|
|
||||||
{
|
|
||||||
// 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 );
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -320,17 +320,20 @@ void kernel_explorer::Update()
|
||||||
|
|
||||||
for (auto&& entry : lv2_types)
|
for (auto&& entry : lv2_types)
|
||||||
{
|
{
|
||||||
if (entry.node && entry.count)
|
if (entry.node)
|
||||||
|
{
|
||||||
|
if (entry.count)
|
||||||
{
|
{
|
||||||
// Append object count
|
// Append object count
|
||||||
entry.node->setText(0, entry.node->text(0) + qstr(fmt::format(" (%zu)", entry.count)));
|
entry.node->setText(0, entry.node->text(0) + qstr(fmt::format(" (%zu)", entry.count)));
|
||||||
}
|
}
|
||||||
else if (entry.node)
|
else
|
||||||
{
|
{
|
||||||
// Delete node otherwise
|
// Delete node otherwise
|
||||||
delete entry.node;
|
delete entry.node;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// RawSPU Threads (TODO)
|
// RawSPU Threads (TODO)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue