forked from Imagelibrary/rtems
2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU. Tie PPC_HAS_FPU to _SOFT_FLOAT.
This commit is contained in:
@@ -110,7 +110,6 @@ extern "C" {
|
|||||||
#define PPC_ALIGNMENT 4
|
#define PPC_ALIGNMENT 4
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_HAS_RFCI 1
|
#define PPC_HAS_RFCI 1
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
#define PPC_I_CACHE 2048
|
#define PPC_I_CACHE 2048
|
||||||
#define PPC_D_CACHE 1024
|
#define PPC_D_CACHE 1024
|
||||||
@@ -222,8 +221,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 4096
|
#define PPC_D_CACHE 4096
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_INTERRUPT_MAX 71
|
#define PPC_INTERRUPT_MAX 71
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_HAS_DOUBLE 0
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
|
|
||||||
#define PPC_MSR_0 0x00009000
|
#define PPC_MSR_0 0x00009000
|
||||||
@@ -242,8 +239,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 4096
|
#define PPC_D_CACHE 4096
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_INTERRUPT_MAX 71
|
#define PPC_INTERRUPT_MAX 71
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_HAS_DOUBLE 0
|
|
||||||
|
|
||||||
#define PPC_MSR_0 0x00009000
|
#define PPC_MSR_0 0x00009000
|
||||||
#define PPC_MSR_1 0x00001000
|
#define PPC_MSR_1 0x00001000
|
||||||
@@ -289,9 +284,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 16384
|
#define PPC_D_CACHE 16384
|
||||||
#define PPC_CACHE_ALIGNMENT 32
|
#define PPC_CACHE_ALIGNMENT 32
|
||||||
#define PPC_INTERRUPT_MAX 125
|
#define PPC_INTERRUPT_MAX 125
|
||||||
/*#define PPC_HAS_FPU 0 */ /* my 8260 is one the few with no FPU */
|
|
||||||
#define PPC_HAS_FPU 1 /* the rest do have one */
|
|
||||||
#define PPC_HAS_DOUBLE 1
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@@ -417,12 +409,18 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unless specified above, then assume the model has FP support.
|
* Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
|
||||||
|
* FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
|
||||||
|
* and disallow explicitly setting PPC_HAS_FPU?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PPC_HAS_FPU
|
#ifndef PPC_HAS_FPU
|
||||||
|
#ifdef _SOFT_FLOAT
|
||||||
|
#define PPC_HAS_FPU 0
|
||||||
|
#else
|
||||||
#define PPC_HAS_FPU 1
|
#define PPC_HAS_FPU 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unless specified above, If the model has FP support, it is assumed to
|
* Unless specified above, If the model has FP support, it is assumed to
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2005-02-10 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* rtems/score/powerpc.h: Remove hard-coded PPC_HAS_FPU.
|
||||||
|
Tie PPC_HAS_FPU to _SOFT_FLOAT.
|
||||||
|
|
||||||
2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2005-02-09 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* rtems/old-exceptions/cpu.h, rtems/score/powerpc.h:
|
* rtems/old-exceptions/cpu.h, rtems/score/powerpc.h:
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ extern "C" {
|
|||||||
#define PPC_ALIGNMENT 4
|
#define PPC_ALIGNMENT 4
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_HAS_RFCI 1
|
#define PPC_HAS_RFCI 1
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
#define PPC_I_CACHE 2048
|
#define PPC_I_CACHE 2048
|
||||||
#define PPC_D_CACHE 1024
|
#define PPC_D_CACHE 1024
|
||||||
@@ -222,8 +221,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 4096
|
#define PPC_D_CACHE 4096
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_INTERRUPT_MAX 71
|
#define PPC_INTERRUPT_MAX 71
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_HAS_DOUBLE 0
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
|
|
||||||
#define PPC_MSR_0 0x00009000
|
#define PPC_MSR_0 0x00009000
|
||||||
@@ -242,8 +239,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 4096
|
#define PPC_D_CACHE 4096
|
||||||
#define PPC_CACHE_ALIGNMENT 16
|
#define PPC_CACHE_ALIGNMENT 16
|
||||||
#define PPC_INTERRUPT_MAX 71
|
#define PPC_INTERRUPT_MAX 71
|
||||||
#define PPC_HAS_FPU 0
|
|
||||||
#define PPC_HAS_DOUBLE 0
|
|
||||||
|
|
||||||
#define PPC_MSR_0 0x00009000
|
#define PPC_MSR_0 0x00009000
|
||||||
#define PPC_MSR_1 0x00001000
|
#define PPC_MSR_1 0x00001000
|
||||||
@@ -289,9 +284,6 @@ extern "C" {
|
|||||||
#define PPC_D_CACHE 16384
|
#define PPC_D_CACHE 16384
|
||||||
#define PPC_CACHE_ALIGNMENT 32
|
#define PPC_CACHE_ALIGNMENT 32
|
||||||
#define PPC_INTERRUPT_MAX 125
|
#define PPC_INTERRUPT_MAX 125
|
||||||
/*#define PPC_HAS_FPU 0 */ /* my 8260 is one the few with no FPU */
|
|
||||||
#define PPC_HAS_FPU 1 /* the rest do have one */
|
|
||||||
#define PPC_HAS_DOUBLE 1
|
|
||||||
#define PPC_USE_MULTIPLE 1
|
#define PPC_USE_MULTIPLE 1
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@@ -417,12 +409,18 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unless specified above, then assume the model has FP support.
|
* Unless specified above, assume PPC_HAS_FPU to be a synonym for _SOFT_FLOAT.
|
||||||
|
* FIXME: Should we tie PPC_HAS_FPU to _SOFT_FLOAT, directly
|
||||||
|
* and disallow explicitly setting PPC_HAS_FPU?
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef PPC_HAS_FPU
|
#ifndef PPC_HAS_FPU
|
||||||
|
#ifdef _SOFT_FLOAT
|
||||||
|
#define PPC_HAS_FPU 0
|
||||||
|
#else
|
||||||
#define PPC_HAS_FPU 1
|
#define PPC_HAS_FPU 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unless specified above, If the model has FP support, it is assumed to
|
* Unless specified above, If the model has FP support, it is assumed to
|
||||||
|
|||||||
Reference in New Issue
Block a user