summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-05-16 11:47:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-05-16 11:47:17 +0000
commit3a84e00084d30e20920b7bcb34818288784c91ce (patch)
tree8c021dd15e3e4bd8e79a0fbccb63288edfcf3014 /sys/arch/m88k
parent65b476432954176a24f92f9dae135b0f627abbf7 (diff)
Remove PT_[GS]ETFPREGS and struct fpreg, as we have no real floating point
registers, and the floating point control registers are savec in the reg structure.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/include/ptrace.h4
-rw-r--r--sys/arch/m88k/include/reg.h18
-rw-r--r--sys/arch/m88k/m88k/process_machdep.c33
3 files changed, 5 insertions, 50 deletions
diff --git a/sys/arch/m88k/include/ptrace.h b/sys/arch/m88k/include/ptrace.h
index c662ecceb41..d6fa059eeda 100644
--- a/sys/arch/m88k/include/ptrace.h
+++ b/sys/arch/m88k/include/ptrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ptrace.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */
+/* $OpenBSD: ptrace.h,v 1.2 2005/05/16 11:47:14 miod Exp $ */
/*
* Copyright (c) 1999, Steve Murphree, Jr.
* Copyright (c) 1992, 1993
@@ -52,8 +52,6 @@
#define PT_STEP (PT_FIRSTMACH + 0)
#define PT_GETREGS (PT_FIRSTMACH + 1)
#define PT_SETREGS (PT_FIRSTMACH + 2)
-#define PT_GETFPREGS (PT_FIRSTMACH + 3)
-#define PT_SETFPREGS (PT_FIRSTMACH + 4)
#ifdef _KERNEL
int cpu_singlestep(struct proc *);
diff --git a/sys/arch/m88k/include/reg.h b/sys/arch/m88k/include/reg.h
index 17fc16546e5..c1c16474662 100644
--- a/sys/arch/m88k/include/reg.h
+++ b/sys/arch/m88k/include/reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: reg.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */
+/* $OpenBSD: reg.h,v 1.2 2005/05/16 11:47:14 miod Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -35,8 +35,8 @@
#define _M88K_REG_H_
struct reg {
- unsigned int r[32]; /* 0 - 31 */
- unsigned int epsr; /* 32 */
+ unsigned int r[32];
+ unsigned int epsr;
unsigned int fpsr;
unsigned int fpcr;
unsigned int sxip;
@@ -75,16 +75,4 @@ struct reg {
unsigned int fpit;
};
-struct fpreg {
- unsigned int fp_fpecr;
- unsigned int fp_fphs1;
- unsigned int fp_fpls1;
- unsigned int fp_fphs2;
- unsigned int fp_fpls2;
- unsigned int fp_fppt;
- unsigned int fp_fprh;
- unsigned int fp_fprl;
- unsigned int fp_fpit;
-};
-
#endif /* _M88K_REG_H_ */
diff --git a/sys/arch/m88k/m88k/process_machdep.c b/sys/arch/m88k/m88k/process_machdep.c
index 41071bf4c07..ac78b0f9fe5 100644
--- a/sys/arch/m88k/m88k/process_machdep.c
+++ b/sys/arch/m88k/m88k/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.1 2004/04/29 14:33:27 miod Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.2 2005/05/16 11:47:16 miod Exp $ */
/*
* Copyright (c) 1993 The Regents of the University of California.
@@ -81,23 +81,6 @@ process_read_regs(p, regs)
return (0);
}
-int
-process_read_fpregs(p, regs)
- struct proc *p;
- struct fpreg *regs;
-{
-#if 0
- extern struct fpstate initfpstate;
- struct fpstate *statep = &initfpstate;
-
- /* NOTE: struct fpreg == struct fpstate */
- if (p->p_md.md_fpstate)
- statep = p->p_md.md_fpstate;
- bcopy(statep, regs, sizeof(struct fpreg));
-#endif
- return 0;
-}
-
#ifdef PTRACE
int
@@ -132,18 +115,4 @@ process_set_pc(p, addr)
return (0);
}
-int
-process_write_fpregs(p, regs)
- struct proc *p;
- struct fpreg *regs;
-{
-#if 0
- if (p->p_md.md_fpstate == NULL)
- return EINVAL;
-
- bcopy(regs, p->p_md.md_fpstate, sizeof(struct fpreg));
-#endif
- return 0;
-}
-
#endif /* PTRACE */