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 Do not set ksi->ksi_addr twice. No func...



details:   https://anonhg.NetBSD.org/src/rev/303441050973
branches:  trunk
changeset: 935980:303441050973
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jul 15 07:52:58 2020 +0000

description:
Do not set ksi->ksi_addr twice. No functional changes.

diffstat:

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

diffs (34 lines):

diff -r 6e93cea9289a -r 303441050973 sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 07:47:27 2020 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 07:52:58 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.25 2020/07/15 07:37:25 rin Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.26 2020/07/15 07:52:58 rin Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.25 2020/07/15 07:37:25 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.26 2020/07/15 07:52:58 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -211,7 +211,6 @@
                ksi->ksi_signo = SIGSEGV;
                ksi->ksi_trap = EXC_ISI;
                ksi->ksi_code = SEGV_MAPERR;
-               ksi->ksi_addr = (void *)tf->tf_srr0;
                return true;
        }
 
@@ -226,7 +225,6 @@
                ksi->ksi_signo = SIGTRAP;
                ksi->ksi_trap = EXC_PGM;
                ksi->ksi_code = TRAP_TRACE;
-               ksi->ksi_addr = (void *)tf->tf_srr0;
                return true;
        }
        switch (fpu_execute(tf, &fe, &insn)) {



Home | Main Index | Thread Index | Old Index