From 2455f09608168afaed08d552756e04d58bde6e23 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 10 Jul 2003 19:23:17 +0000 Subject: small bit of cleaning --- sys/arch/sparc64/sparc64/trap.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c index cfeff9e132c..e627538c2e0 100644 --- a/sys/arch/sparc64/sparc64/trap.c +++ b/sys/arch/sparc64/sparc64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.27 2003/07/10 15:26:54 jason Exp $ */ +/* $OpenBSD: trap.c,v 1.28 2003/07/10 19:23:16 jason Exp $ */ /* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */ /* @@ -455,7 +455,6 @@ trap(tf, type, pc, tstate) * the FPU. */ if (type == T_FPDISABLED) { -extern void db_printf(const char * , ...); #ifndef NEW_FPSTATE if (fpproc != NULL) { /* someone else had it */ savefpstate(fpproc->p_md.md_fpstate); @@ -572,11 +571,7 @@ badtrap: } case T_INST_EXCEPT: - trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ - break; case T_TEXTFAULT: - trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ - break; case T_PRIVINST: trapsignal(p, SIGILL, 0, ILL_ILLOPC, sv); /* XXX code?? */ break; @@ -597,14 +592,10 @@ badtrap: * Since All UltraSPARC CPUs have an FPU how can this happen? */ if (!foundfpu) { -#ifdef notyet - fpu_emulate(p, tf, fs); + trapsignal(p, SIGFPE, 0, FPE_FLTINV, sv); break; -#else - trapsignal(p, SIGFPE, 0, FPE_FLTINV, sv); /* XXX code?? */ - break; -#endif } + /* * We may have more FPEs stored up and/or ops queued. * If they exist, handle them and get out. Otherwise, -- cgit v1.2.3