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/df4b9dc85e3d
branches:  trunk
changeset: 935981:df4b9dc85e3d
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 303441050973 -r df4b9dc85e3d 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