mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 09:23:34 +00:00
Pause only on fatal messages
Also make some access violation an error since we don't pause on it.
This commit is contained in:
parent
d3eb267ba9
commit
87d4b14ca9
@ -1449,7 +1449,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no
|
||||
if (!access_violation_recovered)
|
||||
{
|
||||
vm_log.notice("\n%s", cpu->dump());
|
||||
vm_log.fatal("Access violation %s location 0x%x (%s)", is_writing ? "writing" : "reading", addr, (is_writing && vm::check_addr(addr)) ? "read-only memory" : "unmapped memory");
|
||||
vm_log.error("Access violation %s location 0x%x (%s)", is_writing ? "writing" : "reading", addr, (is_writing && vm::check_addr(addr)) ? "read-only memory" : "unmapped memory");
|
||||
}
|
||||
|
||||
// TODO:
|
||||
|
@ -152,7 +152,7 @@ struct pause_on_fatal final : logs::listener
|
||||
|
||||
void log(u64 /*stamp*/, const logs::message& msg, const std::string& /*prefix*/, const std::string& /*text*/) override
|
||||
{
|
||||
if (msg.sev <= logs::level::fatal)
|
||||
if (msg.sev == logs::level::fatal)
|
||||
{
|
||||
// Pause emulation if fatal error encountered
|
||||
Emu.Pause();
|
||||
|
Loading…
Reference in New Issue
Block a user