Module Name: src
Committed By: rin
Date: Sat Sep 3 04:54:47 UTC 2022
Modified Files:
src/sys/arch/powerpc/fpu: fpu_emu.c
Log Message:
Localize addr and buf. NFC.
To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/powerpc/fpu/fpu_emu.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/powerpc/fpu/fpu_emu.c
diff -u src/sys/arch/powerpc/fpu/fpu_emu.c:1.48 src/sys/arch/powerpc/fpu/fpu_emu.c:1.49
--- src/sys/arch/powerpc/fpu/fpu_emu.c:1.48 Sat Sep 3 04:54:08 2022
+++ src/sys/arch/powerpc/fpu/fpu_emu.c Sat Sep 3 04:54:47 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: fpu_emu.c,v 1.48 2022/09/03 04:54:08 rin Exp $ */
+/* $NetBSD: fpu_emu.c,v 1.49 2022/09/03 04:54:47 rin Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.48 2022/09/03 04:54:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.49 2022/09/03 04:54:47 rin Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -294,7 +294,6 @@ fpu_execute(struct trapframe *tf, struct
struct fpn *fp;
union instr instr = *insn;
int *a;
- vaddr_t addr;
int ra, rb, rc, rt, type, mask, fsr, cx, bf, setcr, cond;
u_int bits;
struct fpreg *fs;
@@ -335,7 +334,7 @@ fpu_execute(struct trapframe *tf, struct
* Convert to/from single if needed, calculate addr,
* and update index reg if needed.
*/
- uint64_t buf;
+ vaddr_t addr;
size_t size = sizeof(double);
int store, update;
@@ -412,6 +411,8 @@ fpu_execute(struct trapframe *tf, struct
/* Store */
FPU_EMU_EVCNT_INCR(fpstore);
if (type != FTYPE_DBL) {
+ uint64_t buf;
+
DPRINTF(FPE_INSN,
("fpu_execute: Store SNG at %p\n",
(void *)addr));