SYSCTL_INT emulate_fp error
Warner Losh
imp at bsdimp.com
Tue Aug 7 08:34:56 UTC 2012
On Aug 7, 2012, at 1:13 AM, Paul Ambrose wrote:
> When I read sys/mips/mips/trap.c, I found
> /*
> * FP emulation is assumed to work on O32, but the code is outdated and
> crufty
> * enough that it's a more sensible default to have it disabled when using
> * other ABIs. At the very least, it needs a lot of help in using
> * type-semantic ABI-oblivious macros for everything it does.
> */
> #if defined(__mips_o32)
> static int emulate_fp = 1;
> #else
> static int emulate_fp = 0;
> #endif
> SYSCTL_INT(_machdep, OID_AUTO, emulate_fp, CTLFLAG_RW,
> &allow_unaligned_acc, 0, "Emulate unimplemented FPU instructions");
>
> here &allow_unaligned_acc should be &emulate_fp
You're right. Fixed.
Warner
More information about the freebsd-mips
mailing list