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 For trap instruction, ksi_code should b...



details:   https://anonhg.NetBSD.org/src/rev/128aa017a4cf
branches:  trunk
changeset: 973854:128aa017a4cf
user:      rin <rin%NetBSD.org@localhost>
date:      Wed Jul 15 07:54:25 2020 +0000

description:
For trap instruction, ksi_code should be TRAP_BRKPT not TRAP_TRACE.

diffstat:

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

diffs (27 lines):

diff -r 2f316221ea09 -r 128aa017a4cf sys/arch/powerpc/fpu/fpu_emu.c
--- a/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 07:52:58 2020 +0000
+++ b/sys/arch/powerpc/fpu/fpu_emu.c    Wed Jul 15 07:54:25 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu_emu.c,v 1.26 2020/07/15 07:52:58 rin Exp $ */
+/*     $NetBSD: fpu_emu.c,v 1.27 2020/07/15 07:54:25 rin Exp $ */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.26 2020/07/15 07:52:58 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.27 2020/07/15 07:54:25 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -224,7 +224,7 @@
                DPRINTF(FPE_EX, ("fpu_emulate: SIGTRAP\n"));
                ksi->ksi_signo = SIGTRAP;
                ksi->ksi_trap = EXC_PGM;
-               ksi->ksi_code = TRAP_TRACE;
+               ksi->ksi_code = TRAP_BRKPT;
                return true;
        }
        switch (fpu_execute(tf, &fe, &insn)) {



Home | Main Index | Thread Index | Old Index