static-fy fpu_execute().

This commit is contained in:
rin 2022-09-05 00:25:18 +00:00
parent f3fb761392
commit d95d2a1bb2
2 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpu_emu.c,v 1.53 2022/09/04 13:32:14 rin Exp $ */
/* $NetBSD: fpu_emu.c,v 1.54 2022/09/05 00:25:18 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.53 2022/09/04 13:32:14 rin Exp $");
__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.54 2022/09/05 00:25:18 rin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@ -167,6 +167,8 @@ int fpe_debug = 0;
extern vaddr_t opc_disasm(vaddr_t loc, int opcode);
#endif
static int fpu_execute(struct trapframe *, struct fpemu *, union instr *);
#ifdef DEBUG
/*
* Dump a `fpn' structure.
@ -288,7 +290,7 @@ success:
* Note that we do not catch all illegal opcodes, so you can, for instance,
* multiply two integers this way.
*/
int
static int
fpu_execute(struct trapframe *tf, struct fpemu *fe, union instr *insn)
{
struct fpn *fp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpu_extern.h,v 1.10 2022/09/05 00:24:24 rin Exp $ */
/* $NetBSD: fpu_extern.h,v 1.11 2022/09/05 00:25:18 rin Exp $ */
/*-
* Copyright (c) 1995 The NetBSD Foundation, Inc.
@ -44,7 +44,6 @@ struct fpn;
/* fpu.c */
bool fpu_emulate(struct trapframe *, struct fpreg *, ksiginfo_t *);
int fpu_execute(struct trapframe *, struct fpemu *, union instr *);
/* fpu_add.c */
struct fpn *fpu_add(struct fpemu *);