mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 15:00:17 +02:00
OpcodeDispatcher: Set correct trap number for noexec faults
This commit is contained in:
1 parent
e383cc89eb
commit
27fd5505be
1 file changed
+1
-1
@@ -4857,7 +4857,7 @@ void OpDispatchBuilder::NoExecOp(OpcodeArgs) {
|
||||
BreakOp(Op, FEXCore::IR::BreakDefinition {
|
||||
.ErrorRegister = 0,
|
||||
.Signal = Core::FAULT_SIGSEGV,
|
||||
.TrapNumber = 0,
|
||||
.TrapNumber = X86State::X86_TRAPNO_PF,
|
||||
.si_code = 2, // SEGV_ACCERR
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user