From c3a4e57efeeb810f37db6330c961e654022a2627 Mon Sep 17 00:00:00 2001 From: Eladash Date: Thu, 2 Apr 2020 22:20:56 +0300 Subject: [PATCH] Reduce log level of page fault notifications Log current hle function. --- Utilities/Thread.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 3825a742e9..8062e9e85e 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1450,9 +1450,17 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no pf_events->events.emplace(static_cast(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"); + if (cpu->id_type() == 1) + { + if (const auto func = static_cast(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); // If we fail due to being busy, wait a bit and try again.