summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-06-25 20:18:07 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-06-25 20:18:07 +0000
commit7f25b2c327254506ea1c8ca59862ea2c5c8cfdbe (patch)
tree9b435f6ebc6301a7772e0d16e137d92040c3d5d2 /sys/arch
parent75aa34b1fe9c93dbec9e03a833bfc9dd1fce8023 (diff)
Do not clear PSR_SER on 88110 when leaving single-stepping mode.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/m88k/m88k/db_sstep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/m88k/m88k/db_sstep.c b/sys/arch/m88k/m88k/db_sstep.c
index cebd39209b8..ccb2380c8f2 100644
--- a/sys/arch/m88k/m88k/db_sstep.c
+++ b/sys/arch/m88k/m88k/db_sstep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_sstep.c,v 1.1 2004/06/19 18:28:37 miod Exp $ */
+/* $OpenBSD: db_sstep.c,v 1.2 2004/06/25 20:18:06 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1991 Carnegie Mellon University
@@ -289,7 +289,7 @@ db_set_single_step(regs)
db_regs_t *regs;
{
if (cputyp == CPU_88110) {
- ((regs)->epsr |= (PSR_TRACE | PSR_SER));
+ (regs)->epsr |= PSR_TRACE | PSR_SER;
} else {
db_addr_t pc = PC_REGS(regs);
#ifndef SOFTWARE_SSTEP_EMUL
@@ -322,7 +322,8 @@ db_clear_single_step(regs)
db_regs_t *regs;
{
if (cputyp == CPU_88110) {
- ((regs)->epsr &= ~(PSR_TRACE | PSR_SER));
+ /* do not remove PSR_SER as we don't enable OoO */
+ (regs)->epsr &= ~PSR_TRACE;
} else {
if (db_taken_bkpt != 0) {
db_delete_temp_breakpoint(db_taken_bkpt);