Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/fpu Set ksi_code correctly via fpu_get_faul...



details:   https://anonhg.NetBSD.org/src/rev/da21c63a1c0a
branches:  trunk
changeset: 935992:da21c63a1c0a
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jul 15 09:22:26 2020 +0000

description:
Set ksi_code correctly via fpu_get_fault_code() for SIGFPE.

diffstat:

 sys/arch/powerpc/fpu/fpu_emu.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3f8a2e9b4fff -r da21c63a1c0a sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 09:19:49 2020 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 09:22:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.30 2020/07/15 09:16:35 rin Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.31 2020/07/15 09:22:26 rin Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.30 2020/07/15 09:16:35 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.31 2020/07/15 09:22:26 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -244,6 +244,7 @@
                DPRINTF(FPE_EX, ("fpu_emulate: SIGFPE\n"));
                ksi->ksi_signo = SIGFPE;
                ksi->ksi_trap = EXC_PGM;
+               ksi->ksi_code = fpu_get_fault_code();
                return true;
 
        case FAULT:



Home | Main Index | Thread Index | Old Index