diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-11 13:12:17 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-11 13:12:17 +0000 |
commit | ee167f98b96ec995b2df386d45da78feacd6b5b4 (patch) | |
tree | 19638855fd48303840e625bb4bba511b59cfc61c | |
parent | 88cb77b8bff1df13bf5accbb64e71f79a73193f1 (diff) |
Make gcc4 happy. From NetBSD. Probably reported to me before by jsg@ or
robert@.
-rw-r--r-- | sys/arch/sparc64/sparc64/emul.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/emul.c b/sys/arch/sparc64/sparc64/emul.c index 18653bab637..33437668251 100644 --- a/sys/arch/sparc64/sparc64/emul.c +++ b/sys/arch/sparc64/sparc64/emul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emul.c,v 1.17 2010/01/01 23:19:20 kettenis Exp $ */ +/* $OpenBSD: emul.c,v 1.18 2010/04/11 13:12:16 kettenis Exp $ */ /* $NetBSD: emul.c,v 1.8 2001/06/29 23:58:40 eeh Exp $ */ /*- @@ -50,6 +50,7 @@ #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 *); @@ -118,7 +119,7 @@ writefpreg(p, i, val) int i; const void *val; { - FPR(p, i) = *(const int32_t *) val; + FPRSET(p, i, *(const int32_t *) val); return 0; } |