From 87702ac6dfcefa4df067f59394c398d3c1cb5ec6 Mon Sep 17 00:00:00 2001 From: kn Date: Wed, 8 Aug 2018 08:42:49 +0000 Subject: [PATCH] r1.19 removed a bunch of code, but not enough, and left dead code around. From Miod Vallat, "Go ahead" kettenis --- sys/arch/sparc64/sparc64/emul.c | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/sys/arch/sparc64/sparc64/emul.c b/sys/arch/sparc64/sparc64/emul.c index ee3a8f20b0e..92e029f2ae1 100644 --- a/sys/arch/sparc64/sparc64/emul.c +++ b/sys/arch/sparc64/sparc64/emul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emul.c,v 1.23 2014/11/16 12:30:59 deraadt Exp $ */ +/* $OpenBSD: emul.c,v 1.24 2018/08/08 08:42:49 kn Exp $ */ /* $NetBSD: emul.c,v 1.8 2001/06/29 23:58:40 eeh Exp $ */ /*- @@ -49,13 +49,9 @@ #define GPR(tf, i) ((int32_t *)(u_long)&tf->tf_global)[i] #define IPR(tf, i) ((int32_t *)(u_long)tf->tf_out[6])[i - 16] -#define FPR(p, i) ((int32_t) p->p_md.md_fpstate->fs_regs[i]) -#define FPRSET(p, i, v) p->p_md.md_fpstate->fs_regs[i] = (v) static __inline int readgpreg(struct trapframe64 *, int, void *); -static __inline int readfpreg(struct proc *, int, void *); static __inline int writegpreg(struct trapframe64 *, int, const void *); -static __inline int writefpreg(struct proc *, int, const void *); static __inline int decodeaddr(struct trapframe64 *, union instr *, void *); static int muldiv(struct trapframe64 *, union instr *, int32_t *, int32_t *, int32_t *); @@ -81,7 +77,6 @@ readgpreg(tf, i, val) return error; } - static __inline int writegpreg(tf, i, val) struct trapframe64 *tf; @@ -100,28 +95,6 @@ writegpreg(tf, i, val) return error; } - - -static __inline int -readfpreg(p, i, val) - struct proc *p; - int i; - void *val; -{ - *(int32_t *) val = FPR(p, i); - return 0; -} - - -static __inline int -writefpreg(p, i, val) - struct proc *p; - int i; - const void *val; -{ - FPRSET(p, i, *(const int32_t *) val); - return 0; -} static __inline int decodeaddr(tf, code, val) -- 2.20.1