1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

Deliver SIGTRAP, rather than SIGEMT, when a TADDccTV or TSUBccTV instruction

traps. Such instructions are deprecated in v9 (64-bit) code and should never
occur in real-life code. See v9 manual A.59 and A.60 for details.
CVS ----------------------------------------------------------------------
This commit is contained in:
miod 2024-10-16 18:43:42 +00:00
parent 60ddae46be
commit 5a69559862

View File

@ -1,4 +1,4 @@
/* $OpenBSD: trap.c,v 1.125 2024/03/29 21:19:30 miod Exp $ */
/* $OpenBSD: trap.c,v 1.126 2024/10/16 18:43:42 miod Exp $ */
/* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */
/*
@ -584,9 +584,6 @@ dopanic:
}
case T_TAGOF:
trapsignal(p, SIGEMT, 0, EMT_TAGOVF, sv); /* XXX code? */
break;
case T_BREAKPOINT:
trapsignal(p, SIGTRAP, 0, TRAP_BRKPT, sv);
break;