diff options
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/exec/score/cpu/c4x/rtems/score/c4x.h | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/c4x/c4xsim/README | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/c4x/c4xsim/include/Makefile.am | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/c4x/shared/bspspuriousinit.c | 1 |
4 files changed, 5 insertions, 10 deletions
diff --git a/c/src/exec/score/cpu/c4x/rtems/score/c4x.h b/c/src/exec/score/cpu/c4x/rtems/score/c4x.h index fe1d2cd139..d3ef758693 100644 --- a/c/src/exec/score/cpu/c4x/rtems/score/c4x.h +++ b/c/src/exec/score/cpu/c4x/rtems/score/c4x.h @@ -329,7 +329,7 @@ static inline void * c4x_get_ittp(void) register unsigned int _if_value; __asm__( "ldi if, %0" : "=r" (_if_value) ); - return (void *)((_if_value & 0xffff) >> 8); + return (void *)((_if_value & 0xffff0000) >> 8); } static inline void c4x_set_ittp(void *_ittp_value) @@ -343,8 +343,8 @@ static inline void c4x_set_ittp(void *_ittp_value) _if_value = c3x_get_if(); #endif _if_value &= 0xffff; - _ittp_field = (((unsigned int) _ittp_value) << 8); - _if_value |= _ittp_field; + _ittp_field = (((unsigned int) _ittp_value) >> 8); + _if_value |= _ittp_field << 16 ; #ifdef _TMS320C40 c4x_set_iif( _if_value ); #else diff --git a/c/src/lib/libbsp/c4x/c4xsim/README b/c/src/lib/libbsp/c4x/c4xsim/README index 8bb3beda0d..4bb72fe8d9 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/README +++ b/c/src/lib/libbsp/c4x/c4xsim/README @@ -5,7 +5,7 @@ BSP NAME: c4xsim BOARD: Simulator in GDB BUS: N/A -CPU FAMILY: ppc +CPU FAMILY: C3X/C4X CPU: C32 and others COPROCESSORS: N/A MODE: 32 bit mode @@ -14,7 +14,7 @@ DEBUG MONITOR: gdb simulator PERIPHERALS =========== -TIMERS: PPC internal Timebase register +TIMERS: Internal Timer RESOLUTION: ??? SERIAL PORTS: simulated via REAL-TIME CLOCK: ??? diff --git a/c/src/lib/libbsp/c4x/c4xsim/include/Makefile.am b/c/src/lib/libbsp/c4x/c4xsim/include/Makefile.am index 4175fb0d1b..ffaffc58e4 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/include/Makefile.am +++ b/c/src/lib/libbsp/c4x/c4xsim/include/Makefile.am @@ -26,7 +26,3 @@ all-local: $(PREINSTALL_FILES) EXTRA_DIST = bsp.h include $(top_srcdir)/../../../../../../automake/local.am - -H_FILES = $(srcdir)/../../../shared/include/coverhd.h \ - $(srcdir)/bsp.h $(srcdir)/simio.h $(srcdir)/../../../shared/include/bspIo.h - diff --git a/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c b/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c index 9573b6bfcc..6c82b5c9f6 100644 --- a/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c +++ b/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c @@ -16,7 +16,6 @@ #include <bsp.h> #include <bspIo.h> -#include <simio.h> /* * bsp_spurious_initialize |