forked from Imagelibrary/rtems
2006-08-10 Joel Sherrill <joel@OARcorp.com>
* cpu.c, rtems/score/sh.h: Recognize sh2e variant so multilibs will all compile.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2006-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* cpu.c, rtems/score/sh.h: Recognize sh2e variant so multilibs will all
|
||||
compile.
|
||||
|
||||
2006-01-16 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* rtems/score/cpu.h: Part of a large patch to improve Doxygen output.
|
||||
|
||||
@@ -238,7 +238,7 @@ void _CPU_Context_Initialize(
|
||||
int _is_fp )
|
||||
{
|
||||
_the_context->r15 = (uint32_t *) ((uint32_t ) (_stack_base) + (_size) );
|
||||
#if defined(__sh1__) || defined(__sh2__)
|
||||
#if defined(__sh1__) || defined(__sh2__) || defined(__SH2E__)
|
||||
_the_context->sr = (_isr << 4) & 0x00f0 ;
|
||||
#else
|
||||
_the_context->sr = SH4_SR_MD | ((_isr << 4) & 0x00f0);
|
||||
|
||||
@@ -46,7 +46,8 @@ extern "C" {
|
||||
* predefines.
|
||||
*/
|
||||
|
||||
#if defined(__SH3E__) || defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
|
||||
#if defined(__SH2E__) || defined(__SH3E__) || \
|
||||
defined(__SH4__) || defined(__SH4_SINGLE_ONLY__)
|
||||
|
||||
/*
|
||||
* Define this if you want to use XD-registers.
|
||||
@@ -63,7 +64,7 @@ extern "C" {
|
||||
#define SH_HAS_FPU 0
|
||||
#endif
|
||||
|
||||
#elif defined(__sh1__) || defined(__sh2__) || defined(__sh3__)
|
||||
#elif defined(__sh1__) || defined(__sh2__) || defined(__sh3__)
|
||||
#define SH_HAS_FPU 0
|
||||
#else
|
||||
#warning Cannot detect FPU support, assuming no FPU
|
||||
|
||||
Reference in New Issue
Block a user