forked from Imagelibrary/rtems
powerpc: Use PPC_DEFAULT_CACHE_LINE_SIZE
Use it for the default PPC_CACHE_ALIGNMENT. Use it for PPC_STRUCTURE_ALIGNMENT.
This commit is contained in:
@@ -78,7 +78,7 @@ extern "C" {
|
|||||||
* unless specifically set by the model definition:
|
* unless specifically set by the model definition:
|
||||||
*
|
*
|
||||||
* + PPC_INTERRUPT_MAX - 16
|
* + PPC_INTERRUPT_MAX - 16
|
||||||
* + PPC_CACHE_ALIGNMENT - 32
|
* + PPC_CACHE_ALIGNMENT
|
||||||
* + PPC_LOW_POWER_MODE - PPC_LOW_POWER_MODE_NONE
|
* + PPC_LOW_POWER_MODE - PPC_LOW_POWER_MODE_NONE
|
||||||
* + PPC_HAS_EXCEPTION_PREFIX - 1
|
* + PPC_HAS_EXCEPTION_PREFIX - 1
|
||||||
* + PPC_USE_MULTIPLE - 0
|
* + PPC_USE_MULTIPLE - 0
|
||||||
@@ -293,14 +293,8 @@ extern "C" {
|
|||||||
#define PPC_INTERRUPT_MAX 16
|
#define PPC_INTERRUPT_MAX 16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Unless specified otherwise, the cache line size is defaulted to 32.
|
|
||||||
*
|
|
||||||
* The derive the power of 2 the cache line is.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PPC_CACHE_ALIGNMENT
|
#ifndef PPC_CACHE_ALIGNMENT
|
||||||
#define PPC_CACHE_ALIGNMENT 32
|
#define PPC_CACHE_ALIGNMENT PPC_DEFAULT_CACHE_LINE_SIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (PPC_CACHE_ALIGNMENT == 16)
|
#if (PPC_CACHE_ALIGNMENT == 16)
|
||||||
|
|||||||
@@ -265,8 +265,6 @@ extern "C" {
|
|||||||
#define PPC_GPR_STORE evstdd
|
#define PPC_GPR_STORE evstdd
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PPC_DEFAULT_CACHE_LINE_SIZE 32
|
|
||||||
|
|
||||||
#ifndef ASM
|
#ifndef ASM
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
@@ -73,7 +73,10 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PPC_ALIGNMENT 8
|
#define PPC_ALIGNMENT 8
|
||||||
#define PPC_STRUCTURE_ALIGNMENT 32
|
|
||||||
|
#define PPC_DEFAULT_CACHE_LINE_SIZE 32
|
||||||
|
|
||||||
|
#define PPC_STRUCTURE_ALIGNMENT PPC_DEFAULT_CACHE_LINE_SIZE
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Application binary interfaces.
|
* Application binary interfaces.
|
||||||
|
|||||||
Reference in New Issue
Block a user