From b8c288d18411770c37d5da15b1a72afd86a9ca37 Mon Sep 17 00:00:00 2001 From: gwr Date: Tue, 17 Dec 1996 19:27:51 +0000 Subject: [PATCH] Fix warnings. --- sys/arch/m68k/fpe/fpu_emulate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/m68k/fpe/fpu_emulate.c b/sys/arch/m68k/fpe/fpu_emulate.c index 3ff52909bda2..8f05d441f184 100644 --- a/sys/arch/m68k/fpe/fpu_emulate.c +++ b/sys/arch/m68k/fpe/fpu_emulate.c @@ -1,4 +1,4 @@ -/* $NetBSD: fpu_emulate.c,v 1.12 1996/10/30 14:44:47 is Exp $ */ +/* $NetBSD: fpu_emulate.c,v 1.13 1996/12/17 19:27:51 gwr Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -117,6 +117,8 @@ fpu_emulate(frame, fpf) printf("ENTERING fpu_emulate: FPSR=%08x, FPCR=%08x\n", fe.fe_fpsr, fe.fe_fpcr); } + /* always set this (to avoid a warning) */ + savedpc = frame->f_pc; if (frame->f_format == 4) { /* * A format 4 is generated by the 68{EC,LC}040. The PC is @@ -129,7 +131,6 @@ fpu_emulate(frame, fpf) * sizes of all instructions we run across. This may not * be true, so we save the PC in order to restore it later. */ - savedpc = frame->f_pc; frame->f_pc = frame->f_fmt4.f_fslw; }