Module Name: src Committed By: rin Date: Tue Jul 26 16:08:33 UTC 2022
Modified Files: src/sys/arch/powerpc/fpu: fpu_emu.c Log Message: Fix copy-paste in comment. No binary changes. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 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.34 src/sys/arch/powerpc/fpu/fpu_emu.c:1.35 --- src/sys/arch/powerpc/fpu/fpu_emu.c:1.34 Tue Jul 26 16:07:55 2022 +++ src/sys/arch/powerpc/fpu/fpu_emu.c Tue Jul 26 16:08:33 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: fpu_emu.c,v 1.34 2022/07/26 16:07:55 rin Exp $ */ +/* $NetBSD: fpu_emu.c,v 1.35 2022/07/26 16:08:33 rin Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -76,7 +76,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.34 2022/07/26 16:07:55 rin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fpu_emu.c,v 1.35 2022/07/26 16:08:33 rin Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -817,7 +817,7 @@ fpu_execute(struct trapframe *tf, struct cond = fsr & FPSCR_FPCC; /* Isolate condition codes */ cond <<= 16; - /* Move fpu condition codes to cr[1] */ + /* Move fpu condition codes to cr[bf/4] */ tf->tf_cr &= ~(0xf0000000>>bf); tf->tf_cr |= (cond>>bf); DPRINTF(FPE_INSN, ("fpu_execute: cr[%d] (cr=%x) <= %x\n", bf/4, tf->tf_cr, cond));