Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Access FSR register correctly in struct f...
details: https://anonhg.NetBSD.org/src/rev/7314e45f2d2d
branches: trunk
changeset: 520457:7314e45f2d2d
user: enami <enami%NetBSD.org@localhost>
date: Sat Jan 12 01:37:08 2002 +0000
description:
Access FSR register correctly in struct fpreg.r_regs[].
This fixes sshd (actually, libcrypto) failure with new-toolchain.
diffstat:
sys/arch/mips/mips/fpemu.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 9c396af41078 -r 7314e45f2d2d sys/arch/mips/mips/fpemu.c
--- a/sys/arch/mips/mips/fpemu.c Sat Jan 12 01:07:00 2002 +0000
+++ b/sys/arch/mips/mips/fpemu.c Sat Jan 12 01:37:08 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpemu.c,v 1.7 2001/10/16 16:31:36 uch Exp $ */
+/* $NetBSD: fpemu.c,v 1.8 2002/01/12 01:37:08 enami Exp $ */
/*
* Copyright (c) 1999 Shuichiro URATA. All rights reserved.
@@ -85,9 +85,10 @@
struct frame *frame;
u_int32_t cause;
{
+
if (cause & MIPS_CR_BR_DELAY)
frame->f_regs[PC] = MachEmulateBranch(frame, frame->f_regs[PC],
- curpcb->pcb_fpregs.r_regs[FSR], 0);
+ curpcb->pcb_fpregs.r_regs[FSR - FPBASE], 0);
else
frame->f_regs[PC] += 4;
}
Home |
Main Index |
Thread Index |
Old Index