Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TESTERS NEEDED AGAIN] SPU: PUTLLC16 Optimization, SPU Analyzer capabilities upgrade #15429

Merged
merged 6 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions rpcs3/Emu/Cell/Modules/cellSync.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "Utilities/BitField.h"

#include "Emu/Cell/ErrorCodes.h"

// Return Codes
enum CellSyncError : u32
{
Expand Down
15 changes: 13 additions & 2 deletions rpcs3/Emu/Cell/PPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,19 @@ void ppu_thread::cpu_on_stop()
dump_all(ret);
ppu_log.notice("thread context: %s", ret);
}

if (is_stopped())
{
if (last_succ == 0 && last_fail == 0 && exec_bytes == 0)
{
perf_log.notice("PPU thread perf stats are not available.");
}
else
{
perf_log.notice("Perf stats for STCX reload: success %u, failure %u", last_succ, last_fail);
perf_log.notice("Perf stats for instructions: total %u", exec_bytes / 4);
}
}
}

void ppu_thread::exec_task()
Expand Down Expand Up @@ -2287,8 +2300,6 @@ void ppu_thread::exec_task()

ppu_thread::~ppu_thread()
{
perf_log.notice("Perf stats for STCX reload: success %u, failure %u", last_succ, last_fail);
perf_log.notice("Perf stats for instructions: total %u", exec_bytes / 4);
}

ppu_thread::ppu_thread(const ppu_thread_params& param, std::string_view name, u32 _prio, int detached)
Expand Down
Loading