From 5a69559862a623003b3538e1fb82d24394f98fdc Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 16 Oct 2024 18:43:42 +0000 Subject: [PATCH] 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 ---------------------------------------------------------------------- --- sys/arch/sparc64/sparc64/trap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index 985490582e8..091a8e3e16c 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -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; -- 2.20.1