Reduce log level of page fault notifications
Log current hle function.
This commit is contained in:
@@ -1450,9 +1450,17 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no
|
|||||||
pf_events->events.emplace(static_cast<u32>(data2), addr);
|
pf_events->events.emplace(static_cast<u32>(data2), addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
sig_log.error("Page_fault %s location 0x%x because of %s memory", is_writing ? "writing" : "reading",
|
sig_log.warning("Page_fault %s location 0x%x because of %s memory", is_writing ? "writing" : "reading",
|
||||||
addr, data3 == SYS_MEMORY_PAGE_FAULT_CAUSE_READ_ONLY ? "writing read-only" : "using unmapped");
|
addr, data3 == SYS_MEMORY_PAGE_FAULT_CAUSE_READ_ONLY ? "writing read-only" : "using unmapped");
|
||||||
|
|
||||||
|
if (cpu->id_type() == 1)
|
||||||
|
{
|
||||||
|
if (const auto func = static_cast<ppu_thread*>(cpu)->current_function)
|
||||||
|
{
|
||||||
|
sig_log.warning("Page_fault while in function %s", func);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
error_code sending_error = sys_event_port_send(pf_port_id, data1, data2, data3);
|
error_code sending_error = sys_event_port_send(pf_port_id, data1, data2, data3);
|
||||||
|
|
||||||
// If we fail due to being busy, wait a bit and try again.
|
// If we fail due to being busy, wait a bit and try again.
|
||||||
|
|||||||
Reference in New Issue
Block a user