SPU: Add debug information when logging analyzer failures
This commit is contained in:
@@ -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)))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user