This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
MIPS 5KC Target
- From: "Devaughn, Hans" <hans dot devaughn at siemens dot com>
- To: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 24 Aug 2004 07:31:55 -0700
- Subject: [ECOS] MIPS 5KC Target
I have tried building the library, from config tool, for the Atlas and Malta
5KC processors. Both result in the same cache header file error
mipsisa32-elf-gcc -c -I/ecos-work/mips_install/include
-I/eCos/packages/hal/mips/arch/current
-I/eCos/packages/hal/mips/arch/current/src
-I/eCos/packages/hal/mips/arch/current/tests -I. -I/ecos-
/eCos/packages/hal/mips/arch/current/src/ -finline-limit=7000 -mips64 -EL
-msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g
-O2 -ffunction-sections -fdata-sections -fno-exceptions -G0
-Wp,-MD,src/hal_misc.tmp -o src/hal_mips_arch_hal_misc.o /ecos-
/eCos/packages/hal/mips/arch/current/src/hal_misc.c
In file included from
/ecos-work/mips_install/include/cyg/hal/hal_cache.h:64,
from
/eCos/packages/hal/mips/arch/current/src/hal_misc.c:65:
/ecos-work/mips_install/include/cyg/hal/var_cache.h:92:2: #error Unknown
MIPS32 Variant
/ecos-work/mips_install/include/cyg/hal/var_cache.h:198:5: warning:
"HAL_DCACHE_WRITETHRU_MODE" is not defined
/ecos-work/mips_install/include/cyg/hal/var_cache.h:202:2: #error
HAL_DCACHE_FLUSH undefined for MIPS32 writeback cache
/ecos-work/mips_install/include/cyg/hal/var_cache.h:207:5: warning:
"HAL_DCACHE_WRITETHRU_MODE" is not defined
/ecos-work/mips_install/include/cyg/hal/var_cache.h:211:2: #error
HAL_DCACHE_STORE undefined for MIPS32 writeback cache
make[1]: Leaving directory `/ecos-work/mips_build/hal/mips/arch/current'
make[1]: *** [src/hal_misc.o.d] Error 1
The problem is that the generic version of cache header file (on
cyg/hal/var_cache.h) has a check for the MIPS 4KC and generates a compile
error (#error). The 5KC cache header file is in the makefile and on
hal/mips/mips64/current/include/var_cache.h. It would seem that the 5KC
header should be used instead of the 4KC header.
Does anybody have a fix for this apparent problem?
Thanks in advance.
Hans
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss