SYSCTL_INT emulate_fp error

Paul Ambrose ambrosehua at gmail.com
Tue Aug 7 07:13:18 UTC 2012


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


More information about the freebsd-mips mailing list