OpcodeDispatcher: Set correct trap number for noexec faults

This commit is contained in:
Billy Laws committed 2025-07-22 19:30:23 +01:00
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
});
}