From owner-p4-projects Fri Sep 20 19: 3: 5 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F2AD637B404; Fri, 20 Sep 2002 19:03:02 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8C6637B401 for ; Fri, 20 Sep 2002 19:03:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7692A43E7B for ; Fri, 20 Sep 2002 19:03:02 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8L232Co080269 for ; Fri, 20 Sep 2002 19:03:02 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8L2326O080266 for perforce@freebsd.org; Fri, 20 Sep 2002 19:03:02 -0700 (PDT) Date: Fri, 20 Sep 2002 19:03:02 -0700 (PDT) Message-Id: <200209210203.g8L2326O080266@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 17796 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17796 Change 17796 by peter@peter_daintree on 2002/09/20 19:02:47 zap math_emulate Affected files ... .. //depot/projects/hammer/sys/x86_64/include/frame.h#2 edit .. //depot/projects/hammer/sys/x86_64/isa/npx.c#2 edit .. //depot/projects/hammer/sys/x86_64/x86_64/trap.c#2 edit Differences ... ==== //depot/projects/hammer/sys/x86_64/include/frame.h#2 (text+ko) ==== @@ -154,7 +154,6 @@ }; int kdb_trap(int, int, struct trapframe *); -extern int (*pmath_emulate)(struct trapframe *); #define INTR_TO_TRAPFRAME(frame) ((struct trapframe *)&(frame)->if_fs) ==== //depot/projects/hammer/sys/x86_64/isa/npx.c#2 (text+ko) ==== @@ -38,7 +38,6 @@ #include "opt_cpu.h" #include "opt_debug_npx.h" #include "opt_isa.h" -#include "opt_math_emulate.h" #include "opt_npx.h" #include ==== //depot/projects/hammer/sys/x86_64/x86_64/trap.c#2 (text+ko) ==== @@ -101,8 +101,6 @@ #include -int (*pmath_emulate)(struct trapframe *); - extern void trap(struct trapframe frame); #ifdef I386_CPU extern int trapwrite(unsigned addr); @@ -409,21 +407,8 @@ if (npxdna()) goto userout; #endif - if (!pmath_emulate) { - i = SIGFPE; - ucode = FPE_FPU_NP_TRAP; - break; - } - mtx_lock(&Giant); - i = (*pmath_emulate)(&frame); - mtx_unlock(&Giant); - if (i == 0) { - if (!(frame.tf_eflags & PSL_T)) - goto userout; - frame.tf_eflags &= ~PSL_T; - i = SIGTRAP; - } - /* else ucode = emulator_only_knows() XXX */ + i = SIGFPE; + ucode = FPE_FPU_NP_TRAP; break; case T_FPOPFLT: /* FPU operand fetch fault */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message