1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

SPU: Add debug information when logging analyzer failures

This commit is contained in:
Eladash 2024-04-09 20:36:28 +03:00 committed by Elad Ashkenazi
parent 7833862342
commit 1111c1952b

View File

@ -802,6 +802,9 @@ void spu_cache::initialize(bool build_existing_cache)
compiler->init();
// Counter for error reporting
u32 logged_error = 0;
// How much every thread compiled
uint result = 0;
@ -861,6 +864,14 @@ void spu_cache::initialize(bool build_existing_cache)
if (func2 != func)
{
spu_log.error("[0x%05x] SPU Analyser failed, %u vs %u", func2.entry_point, func2.data.size(), size0);
if (logged_error < 2)
{
std::string log;
compiler->dump(func, log);
spu_log.notice("[0x%05x] Function: %s", func.entry_point, log);
logged_error++;
}
}
else if (!compiler->compile(std::move(func2)))
{