mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
SPU: Add debug information when logging analyzer failures
This commit is contained in:
parent
7833862342
commit
1111c1952b
1 changed files with 11 additions and 0 deletions
|
@ -802,6 +802,9 @@ void spu_cache::initialize(bool build_existing_cache)
|
||||||
|
|
||||||
compiler->init();
|
compiler->init();
|
||||||
|
|
||||||
|
// Counter for error reporting
|
||||||
|
u32 logged_error = 0;
|
||||||
|
|
||||||
// How much every thread compiled
|
// How much every thread compiled
|
||||||
uint result = 0;
|
uint result = 0;
|
||||||
|
|
||||||
|
@ -861,6 +864,14 @@ void spu_cache::initialize(bool build_existing_cache)
|
||||||
if (func2 != func)
|
if (func2 != func)
|
||||||
{
|
{
|
||||||
spu_log.error("[0x%05x] SPU Analyser failed, %u vs %u", func2.entry_point, func2.data.size(), size0);
|
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)))
|
else if (!compiler->compile(std::move(func2)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue