- Replace CPU_NOFPU and SOFTFLOAT options with CPU_FPU. By default

we assume that there is no FPU, because majority of SoC does
   not have it.
This commit is contained in:
gonzo 2009-05-26 22:40:12 +00:00
parent 14ff8a23b4
commit 413dd47d0a
7 changed files with 6 additions and 10 deletions

View File

@ -31,8 +31,8 @@
CPU_MIPS4KC opt_global.h
CPU_MIPS32 opt_global.h
CPU_MIPS64 opt_global.h
CPU_NOFPU opt_global.h
CPU_SENTRY5 opt_global.h
CPU_HAVEFPU opt_global.h
ISA_MIPS1 opt_cputype.h
ISA_MIPS3 opt_cputype.h
@ -48,7 +48,6 @@ CFE_CONSOLE opt_global.h
KERNPHYSADDR opt_global.h
KERNVIRTADDR opt_global.h
PHYSADDR opt_global.h
SOFTFLOAT opt_global.h
TARGET_OCTEON opt_global.h
TARGET_EMULATOR opt_ddb.h

View File

@ -4,7 +4,6 @@
ident AR71XX
cpu CPU_MIPS4KC
options CPU_NOFPU
options ISA_MIPS32
makeoptions TARGET_BIG_ENDIAN
makeoptions KERNLOADADDR=0x80050000

View File

@ -26,7 +26,6 @@
ident SENTRY5
cpu CPU_MIPS4KC
options CPU_NOFPU
options ISA_MIPS32
options CPU_SENTRY5 # XXX should this be a
# sub-cpu option?

View File

@ -42,10 +42,10 @@ extern int __flt_rounds(void);
__END_DECLS
#define FLT_RADIX 2 /* b */
#ifdef SOFTFLOAT
#define FLT_ROUNDS -1
#else
#ifdef CPU_HAVEFPU
#define FLT_ROUNDS __flt_rounds() /* FP addition rounds to nearest */
#else
#define FLT_ROUNDS -1
#endif
/*
* XXXMIPS: MIPS32 has both float and double type, so set FLT_EVAL_METHOD

View File

@ -3,7 +3,6 @@ files "../malta/files.malta"
cpu CPU_MIPS4KC
options ISA_MIPS32
options SOFTFLOAT
device pci
device ata
device atadisk

View File

@ -145,7 +145,7 @@ VECTOR(_locore, unknown)
/* Read and store the PrID FPU ID for CPU identification, if any. */
mfc0 t2, COP_0_STATUS_REG
mfc0 t0, MIPS_COP_0_PRID
#ifndef CPU_NOFPU
#ifdef CPU_HAVEFPU
and t2, MIPS_SR_COP_1_BIT
beqz t2, 1f
move t1, zero

View File

@ -928,7 +928,7 @@ trap(trapframe)
goto err;
break;
case T_COP_UNUSABLE + T_USER:
#if defined(SOFTFLOAT)
#if !defined(CPU_HAVEFPU)
/* FP (COP1) instruction */
if ((trapframe->cause & CR_COP_ERR) == 0x10000000) {
i = SIGILL;