URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 888 to Rev 889
- ↔ Reverse comparison
Rev 888 → Rev 889
/trunk/or1ksim/sim-config.h
73,7 → 73,7
char rxfile[STR_SIZE]; /* Filename for RX */ |
char txfile[STR_SIZE]; /* File for TX */ |
char sockif[STR_SIZE]; /* Socket Interface name ('lo', 'eth1',...) */ |
unsigned long vapi_id; /* VAPI id for this instance */ |
unsigned long base_vapi_id; /* VAPI id for this instance */ |
} ethernets[MAX_ETHERNETS]; |
|
int ngpios; |
/trunk/or1ksim/cuc/Makefile
65,11 → 65,11
AUTOMAKE = automake |
AUTOHEADER = autoheader |
|
INSTALL = /usr/bin//install -c |
INSTALL = /usr/bin/install -c |
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) |
INSTALL_DATA = ${INSTALL} -m 644 |
INSTALL_SCRIPT = ${INSTALL_PROGRAM} |
transform = s,^,or32-uclinux-,; |
transform = s,^,or32-,; |
|
NORMAL_INSTALL = : |
PRE_INSTALL = : |
81,11 → 81,11
build_triplet = i686-pc-linux-gnu |
host_alias = i686-pc-linux-gnu |
host_triplet = i686-pc-linux-gnu |
target_alias = or32-uclinux |
target_triplet = or32-unknown-uclinux-gnu |
target_alias = or32 |
target_triplet = or32-unknown-none |
AR = ar |
ARFLAGS = cr |
BUILD_DIR = /home/markom/sim |
BUILD_DIR = /projects/marvin/ivang/marvin/or1k/or1ksim |
CC = gcc |
CFLAGS = -g -O2 -DOR32 |
CPU_ARCH = or32 |
/trunk/or1ksim/testbench/Makefile.in
1,6 → 1,6
# Makefile.in generated automatically by automake 1.4 from Makefile.am |
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am |
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
# This Makefile.in is free software; the Free Software Foundation |
# gives unlimited permission to copy and/or distribute it, |
# with or without modifications, as long as this notice is preserved. |
118,73 → 118,73
inst_set_test_SOURCES = $(OR1K_SUPPORT_S) support.h inst_set_test.c |
############################################### |
|
@OR1K_EXCEPT_TRUE@exit_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@cbasic_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@local_global_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mul_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@dhry_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mycompress_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@functest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mem_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@inst_set_test_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@exit_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@cbasic_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@local_global_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mul_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@dhry_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mycompress_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@functest_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mem_test_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@inst_set_test_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
|
######### MC Tests ############################ |
@OR1K_EXCEPT_TRUE@mc_dram_SOURCES = except_mc.S mc_common.h mc_common.c mc_dram.h mc_dram.c |
@OR1K_EXCEPT_TRUE@mc_dram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_ssram_SOURCES = except_mc.S mc_common.h mc_common.c mc_ssramh mc_ssram.c |
@OR1K_EXCEPT_TRUE@mc_ssram_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_async_SOURCES = except_mc.S mc_common.h mc_common.c mc_async.h mc_async.c |
@OR1K_EXCEPT_TRUE@mc_async_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_sync_SOURCES = except_mc.S mc_common.h mc_common.c mc_sync.h mc_sync.c |
@OR1K_EXCEPT_TRUE@mc_sync_LDFLAGS = -T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_dram_SOURCES = @OR1K_EXCEPT_TRUE@except_mc.S mc_common.h mc_common.c mc_dram.h mc_dram.c |
@OR1K_EXCEPT_TRUE@mc_dram_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_ssram_SOURCES = @OR1K_EXCEPT_TRUE@except_mc.S mc_common.h mc_common.c mc_ssramh mc_ssram.c |
@OR1K_EXCEPT_TRUE@mc_ssram_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_async_SOURCES = @OR1K_EXCEPT_TRUE@except_mc.S mc_common.h mc_common.c mc_async.h mc_async.c |
@OR1K_EXCEPT_TRUE@mc_async_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)except_mc.ld |
@OR1K_EXCEPT_TRUE@mc_sync_SOURCES = @OR1K_EXCEPT_TRUE@except_mc.S mc_common.h mc_common.c mc_sync.h mc_sync.c |
@OR1K_EXCEPT_TRUE@mc_sync_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)except_mc.ld |
################################################ |
|
##### Platform Dependent Tests - not OR1K ##### |
@OR1K_EXCEPT_TRUE@basic_SOURCES = basic.S spr_defs.h |
@OR1K_EXCEPT_TRUE@basic_SOURCES = @OR1K_EXCEPT_TRUE@basic.S spr_defs.h |
@OR1K_EXCEPT_FALSE@basic_SOURCES = |
@OR1K_EXCEPT_TRUE@basic_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@basic_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@basic_LDADD = |
@OR1K_EXCEPT_TRUE@flag_SOURCES = flag.S spr_defs.h |
@OR1K_EXCEPT_TRUE@flag_SOURCES = @OR1K_EXCEPT_TRUE@flag.S spr_defs.h |
@OR1K_EXCEPT_FALSE@flag_SOURCES = |
@OR1K_EXCEPT_TRUE@flag_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@flag_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@flag_LDADD = |
@OR1K_EXCEPT_TRUE@cache_SOURCES = $(OR1K_SUPPORT_S) support.h cache.c cache_asm.S |
@OR1K_EXCEPT_TRUE@cache_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h cache.c cache_asm.S |
@OR1K_EXCEPT_FALSE@cache_SOURCES = |
@OR1K_EXCEPT_TRUE@cache_LDFLAGS = -T$(OR1K_SRCDIR)/cache.ld |
@OR1K_EXCEPT_TRUE@cfg_SOURCES = cfg.S spr_defs.h |
@OR1K_EXCEPT_TRUE@cache_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/cache.ld |
@OR1K_EXCEPT_TRUE@cfg_SOURCES = @OR1K_EXCEPT_TRUE@cfg.S spr_defs.h |
@OR1K_EXCEPT_FALSE@cfg_SOURCES = |
@OR1K_EXCEPT_TRUE@cfg_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@cfg_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@cfg_LDADD = |
@OR1K_EXCEPT_TRUE@dmatest_SOURCES = $(OR1K_SUPPORT_S) support.h dmatest.c |
@OR1K_EXCEPT_TRUE@dmatest_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h dmatest.c |
@OR1K_EXCEPT_FALSE@dmatest_SOURCES = |
@OR1K_EXCEPT_TRUE@dmatest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@eth_SOURCES = $(OR1K_SUPPORT_S) support.h eth.c |
@OR1K_EXCEPT_TRUE@dmatest_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@eth_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h eth.c |
@OR1K_EXCEPT_FALSE@eth_SOURCES = |
@OR1K_EXCEPT_TRUE@eth_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@acv_uart_SOURCES = $(OR1K_SUPPORT_S) support.h acv_uart.c |
@OR1K_EXCEPT_TRUE@eth_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@acv_uart_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h acv_uart.c |
@OR1K_EXCEPT_FALSE@acv_uart_SOURCES = |
@OR1K_EXCEPT_TRUE@acv_uart_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@acv_gpio_SOURCES = $(OR1K_SUPPORT_S) support.h acv_gpio.c |
@OR1K_EXCEPT_TRUE@acv_uart_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@acv_gpio_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h acv_gpio.c |
@OR1K_EXCEPT_FALSE@acv_gpio_SOURCES = |
@OR1K_EXCEPT_TRUE@acv_gpio_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mmu_SOURCES = $(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S |
@OR1K_EXCEPT_TRUE@acv_gpio_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@mmu_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h mmu.c mmu_asm.S |
@OR1K_EXCEPT_FALSE@mmu_SOURCES = |
@OR1K_EXCEPT_TRUE@mmu_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@except_test_SOURCES = except_test_s.S except_test.c spr_defs.h |
@OR1K_EXCEPT_TRUE@mmu_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@except_test_SOURCES = @OR1K_EXCEPT_TRUE@except_test_s.S except_test.c spr_defs.h |
@OR1K_EXCEPT_FALSE@except_test_SOURCES = |
@OR1K_EXCEPT_TRUE@except_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@int_test_SOURCES = spr_defs.h int_test.S |
@OR1K_EXCEPT_TRUE@except_test_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@int_test_SOURCES = @OR1K_EXCEPT_TRUE@spr_defs.h int_test.S |
@OR1K_EXCEPT_FALSE@int_test_SOURCES = |
@OR1K_EXCEPT_TRUE@int_test_LDFLAGS = -T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@fbtest_SOURCES = $(OR1K_SUPPORT_S) support.h fbtest.c |
@OR1K_EXCEPT_TRUE@int_test_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/xess.ld |
@OR1K_EXCEPT_TRUE@fbtest_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h fbtest.c |
@OR1K_EXCEPT_FALSE@fbtest_SOURCES = |
@OR1K_EXCEPT_TRUE@fbtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@kbdtest_SOURCES = $(OR1K_SUPPORT_S) support.h kbdtest.c |
@OR1K_EXCEPT_TRUE@fbtest_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@kbdtest_SOURCES = @OR1K_EXCEPT_TRUE@$(OR1K_SUPPORT_S) support.h kbdtest.c |
@OR1K_EXCEPT_FALSE@kbdtest_SOURCES = |
@OR1K_EXCEPT_TRUE@kbdtest_LDFLAGS = -T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@SUBDIRS = support $(SUB_TESTS) $(OR1K_SUB_TESTS) |
@OR1K_EXCEPT_FALSE@SUBDIRS = support $(SUB_TESTS) |
@OR1K_EXCEPT_TRUE@OR1K_SUPPORT_S = except.S |
@OR1K_EXCEPT_TRUE@kbdtest_LDFLAGS = @OR1K_EXCEPT_TRUE@-T$(OR1K_SRCDIR)/default.ld |
@OR1K_EXCEPT_TRUE@SUBDIRS = @OR1K_EXCEPT_TRUE@support $(SUB_TESTS) $(OR1K_SUB_TESTS) |
@OR1K_EXCEPT_FALSE@SUBDIRS = @OR1K_EXCEPT_FALSE@support $(SUB_TESTS) |
@OR1K_EXCEPT_TRUE@OR1K_SUPPORT_S = @OR1K_EXCEPT_TRUE@except.S |
@OR1K_EXCEPT_FALSE@OR1K_SUPPORT_S = |
|
LDADD = support/libsupport.a |
511,7 → 511,7
dot_seen=no; \ |
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ |
rev="$$subdir $$rev"; \ |
test "$$subdir" = "." && dot_seen=yes; \ |
test "$$subdir" != "." || dot_seen=yes; \ |
done; \ |
test "$$dot_seen" = "no" && rev=". $$rev"; \ |
target=`echo $@ | sed s/-recursive//`; \ |
/trunk/or1ksim/testbench/configure
22,6 → 22,20
|
|
|
# isc-posix.m4 serial 1 (gettext-0.10.40) |
|
# This test replaces the one in autoconf. |
# Currently this macro should have the same name as the autoconf macro |
# because gettext's gettext.m4 (distributed in the automake package) |
# still uses it. Otherwise, the use in gettext.m4 makes autoheader |
# give these diagnostics: |
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX |
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX |
|
|
|
|
|
# Define a conditional. |
|
|
576,7 → 590,7
fi |
|
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
echo "configure:580: checking host system type" >&5 |
echo "configure:594: checking host system type" >&5 |
|
host_alias=$host |
case "$host_alias" in |
608,7 → 622,7
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# ./install, which can be erroneously created by make from ./install.sh. |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo "configure:612: checking for a BSD compatible install" >&5 |
echo "configure:626: checking for a BSD compatible install" >&5 |
if test -z "$INSTALL"; then |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
661,7 → 675,7
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
echo "configure:665: checking whether build environment is sane" >&5 |
echo "configure:679: checking whether build environment is sane" >&5 |
# Just in case |
sleep 1 |
echo timestamp > conftestfile |
718,7 → 732,7
test "$program_transform_name" = "" && program_transform_name="s,x,x," |
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
echo "configure:722: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
echo "configure:736: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
764,7 → 778,7
|
missing_dir=`cd $ac_aux_dir && pwd` |
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
echo "configure:768: checking for working aclocal" >&5 |
echo "configure:782: checking for working aclocal" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
777,7 → 791,7
fi |
|
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
echo "configure:781: checking for working autoconf" >&5 |
echo "configure:795: checking for working autoconf" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
790,7 → 804,7
fi |
|
echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
echo "configure:794: checking for working automake" >&5 |
echo "configure:808: checking for working automake" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
803,7 → 817,7
fi |
|
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
echo "configure:807: checking for working autoheader" >&5 |
echo "configure:821: checking for working autoheader" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
816,7 → 830,7
fi |
|
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
echo "configure:820: checking for working makeinfo" >&5 |
echo "configure:834: checking for working makeinfo" >&5 |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
# Redirect stdin to placate older versions of autoconf. Sigh. |
831,7 → 845,7
|
|
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
echo "configure:849: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
869,7 → 883,7
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# ./install, which can be erroneously created by make from ./install.sh. |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo "configure:873: checking for a BSD compatible install" >&5 |
echo "configure:887: checking for a BSD compatible install" >&5 |
if test -z "$INSTALL"; then |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
922,7 → 936,7
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
echo "configure:926: checking build system type" >&5 |
echo "configure:940: checking build system type" >&5 |
|
build_alias=$build |
case "$build_alias" in |
948,7 → 962,7
# Extract the first word of "${ac_tool_prefix}$target-gcc", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:952: checking for $ac_word" >&5 |
echo "configure:966: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
980,7 → 994,7
# Extract the first word of "$target-gcc", so it can be a program name with args. |
set dummy $target-gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:984: checking for $ac_word" >&5 |
echo "configure:998: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1015,7 → 1029,7
# Extract the first word of "${ac_tool_prefix}$target-ranlib", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-ranlib; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1019: checking for $ac_word" >&5 |
echo "configure:1033: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1047,7 → 1061,7
# Extract the first word of "$target-ranlib", so it can be a program name with args. |
set dummy $target-ranlib; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1051: checking for $ac_word" >&5 |
echo "configure:1065: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1082,7 → 1096,7
# Extract the first word of "${ac_tool_prefix}$target-ld", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-ld; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1086: checking for $ac_word" >&5 |
echo "configure:1100: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1114,7 → 1128,7
# Extract the first word of "$target-ld", so it can be a program name with args. |
set dummy $target-ld; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1118: checking for $ac_word" >&5 |
echo "configure:1132: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1149,7 → 1163,7
# Extract the first word of "${ac_tool_prefix}$target-sim", so it can be a program name with args. |
set dummy ${ac_tool_prefix}$target-sim; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1153: checking for $ac_word" >&5 |
echo "configure:1167: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_SIM'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1181,7 → 1195,7
# Extract the first word of "$target-sim", so it can be a program name with args. |
set dummy $target-sim; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1185: checking for $ac_word" >&5 |
echo "configure:1199: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_SIM'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1213,10 → 1227,241
fi |
fi |
|
|
echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
echo "configure:1233: checking for strerror in -lcposix" >&5 |
ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
ac_save_LIBS="$LIBS" |
LIBS="-lcposix $LIBS" |
cat > conftest.$ac_ext <<EOF |
#line 1241 "configure" |
#include "confdefs.h" |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* We use char because int might match the return type of a gcc2 |
builtin and then its argument prototype would still apply. */ |
char strerror(); |
|
int main() { |
strerror() |
; return 0; } |
EOF |
if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
rm -rf conftest* |
eval "ac_cv_lib_$ac_lib_var=yes" |
else |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
eval "ac_cv_lib_$ac_lib_var=no" |
fi |
rm -f conftest* |
LIBS="$ac_save_LIBS" |
|
fi |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
echo "$ac_t""yes" 1>&6 |
LIBS="$LIBS -lcposix" |
else |
echo "$ac_t""no" 1>&6 |
fi |
|
|
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
echo "configure:1275: checking how to run the C preprocessor" >&5 |
# On Suns, sometimes $CPP names a directory. |
if test -n "$CPP" && test -d "$CPP"; then |
CPP= |
fi |
if test -z "$CPP"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
# This must be in double quotes, not single quotes, because CPP may get |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
CPP="${CC-cc} -E" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
# not just through cpp. |
cat > conftest.$ac_ext <<EOF |
#line 1290 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP="${CC-cc} -E -traditional-cpp" |
cat > conftest.$ac_ext <<EOF |
#line 1307 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP="${CC-cc} -nologo -E" |
cat > conftest.$ac_ext <<EOF |
#line 1324 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP=/lib/cpp |
fi |
rm -f conftest* |
fi |
rm -f conftest* |
fi |
rm -f conftest* |
ac_cv_prog_CPP="$CPP" |
fi |
CPP="$ac_cv_prog_CPP" |
else |
ac_cv_prog_CPP="$CPP" |
fi |
echo "$ac_t""$CPP" 1>&6 |
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
echo "configure:1355: checking for ANSI C header files" >&5 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
cat > conftest.$ac_ext <<EOF |
#line 1360 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
#include <stdarg.h> |
#include <string.h> |
#include <float.h> |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
rm -rf conftest* |
ac_cv_header_stdc=yes |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
if test $ac_cv_header_stdc = yes; then |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
cat > conftest.$ac_ext <<EOF |
#line 1385 "configure" |
#include "confdefs.h" |
#include <string.h> |
EOF |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
egrep "memchr" >/dev/null 2>&1; then |
: |
else |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
fi |
|
if test $ac_cv_header_stdc = yes; then |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
cat > conftest.$ac_ext <<EOF |
#line 1403 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
EOF |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
egrep "free" >/dev/null 2>&1; then |
: |
else |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
fi |
|
if test $ac_cv_header_stdc = yes; then |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
if test "$cross_compiling" = yes; then |
: |
else |
cat > conftest.$ac_ext <<EOF |
#line 1424 "configure" |
#include "confdefs.h" |
#include <ctype.h> |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
int main () { int i; for (i = 0; i < 256; i++) |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
exit (0); } |
|
EOF |
if { (eval echo configure:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
then |
: |
else |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
ac_cv_header_stdc=no |
fi |
rm -fr conftest* |
fi |
|
fi |
fi |
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
if test $ac_cv_header_stdc = yes; then |
cat >> confdefs.h <<\EOF |
#define STDC_HEADERS 1 |
EOF |
|
fi |
|
|
MAKE_SHELL=/bin/sh |
|
|
# Extract the first word of "gcc", so it can be a program name with args. |
set dummy gcc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1220: checking for $ac_word" >&5 |
echo "configure:1465: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1246,7 → 1491,7
# Extract the first word of "cc", so it can be a program name with args. |
set dummy cc; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1250: checking for $ac_word" >&5 |
echo "configure:1495: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1297,7 → 1542,7
# Extract the first word of "cl", so it can be a program name with args. |
set dummy cl; ac_word=$2 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "configure:1301: checking for $ac_word" >&5 |
echo "configure:1546: checking for $ac_word" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1329,7 → 1574,7
fi |
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
echo "configure:1333: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
echo "configure:1578: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|
ac_ext=c |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1340,12 → 1585,12
|
cat > conftest.$ac_ext << EOF |
|
#line 1344 "configure" |
#line 1589 "configure" |
#include "confdefs.h" |
|
main(){return(0);} |
EOF |
if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ac_cv_prog_cc_works=yes |
# If we can't run a trivial program, we are probably using a cross compiler. |
if (./conftest; exit) 2>/dev/null; then |
1371,12 → 1616,12
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
fi |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
echo "configure:1375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
echo "configure:1620: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
cross_compiling=$ac_cv_prog_cc_cross |
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
echo "configure:1380: checking whether we are using GNU C" >&5 |
echo "configure:1625: checking whether we are using GNU C" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1385,7 → 1630,7
yes; |
#endif |
EOF |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
ac_cv_prog_gcc=yes |
else |
ac_cv_prog_gcc=no |
1404,7 → 1649,7
ac_save_CFLAGS="$CFLAGS" |
CFLAGS= |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
echo "configure:1408: checking whether ${CC-cc} accepts -g" >&5 |
echo "configure:1653: checking whether ${CC-cc} accepts -g" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1435,224 → 1680,15
fi |
fi |
|
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
echo "configure:1440: checking for POSIXized ISC" >&5 |
if test -d /etc/conf/kconfig.d && |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
then |
echo "$ac_t""yes" 1>&6 |
ISC=yes # If later tests want to check for ISC. |
cat >> confdefs.h <<\EOF |
#define _POSIX_SOURCE 1 |
EOF |
|
if test "$GCC" = yes; then |
CC="$CC -posix" |
else |
CC="$CC -Xp" |
fi |
else |
echo "$ac_t""no" 1>&6 |
ISC= |
fi |
|
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
echo "configure:1461: checking how to run the C preprocessor" >&5 |
# On Suns, sometimes $CPP names a directory. |
if test -n "$CPP" && test -d "$CPP"; then |
CPP= |
fi |
if test -z "$CPP"; then |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
# This must be in double quotes, not single quotes, because CPP may get |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
CPP="${CC-cc} -E" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
# not just through cpp. |
cat > conftest.$ac_ext <<EOF |
#line 1476 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP="${CC-cc} -E -traditional-cpp" |
cat > conftest.$ac_ext <<EOF |
#line 1493 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP="${CC-cc} -nologo -E" |
cat > conftest.$ac_ext <<EOF |
#line 1510 "configure" |
#include "confdefs.h" |
#include <assert.h> |
Syntax Error |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
: |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
CPP=/lib/cpp |
fi |
rm -f conftest* |
fi |
rm -f conftest* |
fi |
rm -f conftest* |
ac_cv_prog_CPP="$CPP" |
fi |
CPP="$ac_cv_prog_CPP" |
else |
ac_cv_prog_CPP="$CPP" |
fi |
echo "$ac_t""$CPP" 1>&6 |
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
echo "configure:1541: checking for ANSI C header files" >&5 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
cat > conftest.$ac_ext <<EOF |
#line 1546 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
#include <stdarg.h> |
#include <string.h> |
#include <float.h> |
EOF |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
{ (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if test -z "$ac_err"; then |
rm -rf conftest* |
ac_cv_header_stdc=yes |
else |
echo "$ac_err" >&5 |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
if test $ac_cv_header_stdc = yes; then |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
cat > conftest.$ac_ext <<EOF |
#line 1571 "configure" |
#include "confdefs.h" |
#include <string.h> |
EOF |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
egrep "memchr" >/dev/null 2>&1; then |
: |
else |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
fi |
|
if test $ac_cv_header_stdc = yes; then |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
cat > conftest.$ac_ext <<EOF |
#line 1589 "configure" |
#include "confdefs.h" |
#include <stdlib.h> |
EOF |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
egrep "free" >/dev/null 2>&1; then |
: |
else |
rm -rf conftest* |
ac_cv_header_stdc=no |
fi |
rm -f conftest* |
|
fi |
|
if test $ac_cv_header_stdc = yes; then |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
if test "$cross_compiling" = yes; then |
: |
else |
cat > conftest.$ac_ext <<EOF |
#line 1610 "configure" |
#include "confdefs.h" |
#include <ctype.h> |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
int main () { int i; for (i = 0; i < 256; i++) |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
exit (0); } |
|
EOF |
if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
then |
: |
else |
echo "configure: failed program was:" >&5 |
cat conftest.$ac_ext >&5 |
rm -fr conftest* |
ac_cv_header_stdc=no |
fi |
rm -fr conftest* |
fi |
|
fi |
fi |
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
if test $ac_cv_header_stdc = yes; then |
cat >> confdefs.h <<\EOF |
#define STDC_HEADERS 1 |
EOF |
|
fi |
|
|
MAKE_SHELL=/bin/sh |
|
|
if test $ac_cv_prog_gcc = yes; then |
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
echo "configure:1650: checking whether ${CC-cc} needs -traditional" >&5 |
echo "configure:1686: checking whether ${CC-cc} needs -traditional" >&5 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
ac_pattern="Autoconf.*'x'" |
cat > conftest.$ac_ext <<EOF |
#line 1656 "configure" |
#line 1692 "configure" |
#include "confdefs.h" |
#include <sgtty.h> |
Autoconf TIOCGETP |
1670,7 → 1706,7
|
if test $ac_cv_prog_gcc_traditional = no; then |
cat > conftest.$ac_ext <<EOF |
#line 1674 "configure" |
#line 1710 "configure" |
#include "confdefs.h" |
#include <termio.h> |
Autoconf TCGETA |
1718,7 → 1754,7
|
|
echo $ac_n "checking whether to enable optimizations""... $ac_c" 1>&6 |
echo "configure:1722: checking whether to enable optimizations" >&5 |
echo "configure:1758: checking whether to enable optimizations" >&5 |
# Check whether --enable-opt or --disable-opt was given. |
if test "${enable_opt+set}" = set; then |
enableval="$enable_opt" |
1738,7 → 1774,7
|
case "$enable_debugging" in |
yes) echo $ac_n "checking for malloc in -lefence""... $ac_c" 1>&6 |
echo "configure:1742: checking for malloc in -lefence" >&5 |
echo "configure:1778: checking for malloc in -lefence" >&5 |
ac_lib_var=`echo efence'_'malloc | sed 'y%./+-%__p_%'` |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
1746,7 → 1782,7
ac_save_LIBS="$LIBS" |
LIBS="-lefence $LIBS" |
cat > conftest.$ac_ext <<EOF |
#line 1750 "configure" |
#line 1786 "configure" |
#include "confdefs.h" |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* We use char because int might match the return type of a gcc2 |
1757,7 → 1793,7
malloc() |
; return 0; } |
EOF |
if { (eval echo configure:1761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
if { (eval echo configure:1797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
rm -rf conftest* |
eval "ac_cv_lib_$ac_lib_var=yes" |
else |
1790,12 → 1826,12
INCLUDES="-I\${top_srcdir}/support" |
|
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
echo "configure:1794: checking for working const" >&5 |
echo "configure:1830: checking for working const" >&5 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
cat > conftest.$ac_ext <<EOF |
#line 1799 "configure" |
#line 1835 "configure" |
#include "confdefs.h" |
|
int main() { |
1844,7 → 1880,7
|
; return 0; } |
EOF |
if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:1884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
rm -rf conftest* |
ac_cv_c_const=yes |
else |
1865,7 → 1901,7
fi |
|
echo $ac_n "checking for inline""... $ac_c" 1>&6 |
echo "configure:1869: checking for inline" >&5 |
echo "configure:1905: checking for inline" >&5 |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
echo $ac_n "(cached) $ac_c" 1>&6 |
else |
1872,7 → 1908,7
ac_cv_c_inline=no |
for ac_kw in inline __inline__ __inline; do |
cat > conftest.$ac_ext <<EOF |
#line 1876 "configure" |
#line 1912 "configure" |
#include "confdefs.h" |
|
int main() { |
1879,7 → 1915,7
} $ac_kw foo() { |
; return 0; } |
EOF |
if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if { (eval echo configure:1919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
rm -rf conftest* |
ac_cv_c_inline=$ac_kw; break |
else |
/trunk/or1ksim/testbench/eth0.tx
0,0 → 1,9
+ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
+ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
+ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
+ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
\ No newline at end of file
|
/trunk/or1ksim/testbench/uos/Makefile.in
1,6 → 1,6
# Makefile.in generated automatically by automake 1.4 from Makefile.am |
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am |
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
# This Makefile.in is free software; the Free Software Foundation |
# gives unlimited permission to copy and/or distribute it, |
# with or without modifications, as long as this notice is preserved. |
/trunk/or1ksim/testbench/support/Makefile.in
1,6 → 1,6
# Makefile.in generated automatically by automake 1.4 from Makefile.am |
# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am |
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
# This Makefile.in is free software; the Free Software Foundation |
# gives unlimited permission to copy and/or distribute it, |
# with or without modifications, as long as this notice is preserved. |
/trunk/or1ksim/testbench/aclocal.m4
1,6 → 1,6
dnl aclocal.m4 generated automatically by aclocal 1.4 |
dnl aclocal.m4 generated automatically by aclocal 1.4-p5 |
|
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
dnl This file is free software; the Free Software Foundation |
dnl gives unlimited permission to copy and/or distribute it, |
dnl with or without modifications, as long as this notice is preserved. |
19,7 → 19,7
dnl Usage: |
dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
|
AC_DEFUN(AM_INIT_AUTOMAKE, |
AC_DEFUN([AM_INIT_AUTOMAKE], |
[AC_REQUIRE([AC_PROG_INSTALL]) |
PACKAGE=[$1] |
AC_SUBST(PACKAGE) |
47,7 → 47,7
# Check to make sure that the build environment is sane. |
# |
|
AC_DEFUN(AM_SANITY_CHECK, |
AC_DEFUN([AM_SANITY_CHECK], |
[AC_MSG_CHECKING([whether build environment is sane]) |
# Just in case |
sleep 1 |
88,7 → 88,7
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
dnl The program must properly implement --version. |
AC_DEFUN(AM_MISSING_PROG, |
AC_DEFUN([AM_MISSING_PROG], |
[AC_MSG_CHECKING(for working $2) |
# Run test in a subshell; some versions of sh will print an error if |
# an executable is not found, even if stderr is redirected. |
102,9 → 102,34
fi |
AC_SUBST($1)]) |
|
# isc-posix.m4 serial 1 (gettext-0.10.40) |
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
dnl This file is free software, distributed under the terms of the GNU |
dnl General Public License. As a special exception to the GNU General |
dnl Public License, this file may be distributed as part of a program |
dnl that contains a configuration script generated by Autoconf, under |
dnl the same distribution terms as the rest of that program. |
|
# This test replaces the one in autoconf. |
# Currently this macro should have the same name as the autoconf macro |
# because gettext's gettext.m4 (distributed in the automake package) |
# still uses it. Otherwise, the use in gettext.m4 makes autoheader |
# give these diagnostics: |
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX |
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX |
|
undefine([AC_ISC_POSIX]) |
|
AC_DEFUN([AC_ISC_POSIX], |
[ |
dnl This test replaces the obsolescent AC_ISC_POSIX kludge. |
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) |
] |
) |
|
# Define a conditional. |
|
AC_DEFUN(AM_CONDITIONAL, |
AC_DEFUN([AM_CONDITIONAL], |
[AC_SUBST($1_TRUE) |
AC_SUBST($1_FALSE) |
if $2; then |
/trunk/or1ksim/peripheral/eth.c
37,11 → 37,13
#include "sim-config.h" |
#include "fields.h" |
#include "crc32.h" |
#include "vapi.h" |
|
static struct eth_device eths[MAX_ETHERNETS]; |
|
/* simulator interface */ |
static void eth_reset_controller( struct eth_device *eth); |
static void eth_vapi_read( unsigned long id, unsigned long data); |
/* register interface */ |
static void eth_write32( unsigned long addr, unsigned long value ); |
static unsigned long eth_read32( unsigned long addr ); |
50,6 → 52,7
static void eth_controller_rx_clock( struct eth_device * ); |
/* utility functions */ |
static int eth_find_controller( unsigned long addr, struct eth_device **eth, unsigned long *reladdr ); |
struct eth_device *eth_find_vapi_device (unsigned long id, unsigned *which); |
static ssize_t eth_read_rx_file( struct eth_device *, void *, size_t ); |
static void eth_skip_rx_file( struct eth_device *, off_t ); |
static void eth_rewind_rx_file( struct eth_device *, off_t ); |
199,8 → 202,9
CLEAR_FLAG (eth->tx.bd, ETH_TX_BD, READY); |
CLEAR_FLAG (eth->tx.bd, ETH_TX_BD, COLLISION); |
SET_FLAG (eth->regs.int_source, ETH_INT_SOURCE, TXE); |
debug (4, "ETH_INT_SOURCE = %0x\n", eth->regs.int_source); |
|
debug (3, "TX - entering state IDLE\n"); |
debug (3, "TX - entering state IDLE\n"); |
eth->tx.state = ETH_TXSTATE_IDLE; |
debug (3, "send FAILED!\n"); |
} |
207,6 → 211,14
|
eth->regs.bd_ram[eth->tx.bd_index] = eth->tx.bd; |
|
/* generate OK interrupt */ |
if ( TEST_FLAG(eth->regs.int_mask, ETH_INT_MASK, TXE_M) || |
TEST_FLAG(eth->regs.int_mask, ETH_INT_MASK, TXB_M) ) |
{ |
if ( TEST_FLAG( eth->tx.bd, ETH_TX_BD, IRQ ) ) |
report_interrupt( eth->mac_int ); |
} |
|
/* advance to next BD */ |
if (bAdvance) { |
if ( TEST_FLAG( eth->tx.bd, ETH_TX_BD, WRAP ) || |
216,13 → 228,6
eth->tx.bd_index += 2; |
} |
|
/* generate OK interrupt */ |
if ( TEST_FLAG(eth->regs.int_mask, ETH_INT_MASK, TXE_M) || |
TEST_FLAG(eth->regs.int_mask, ETH_INT_MASK, TXB_M) ) |
{ |
report_interrupt( eth->mac_int ); |
} |
|
break; |
} |
} |
279,7 → 284,7
eth->rx.fd = eth->rxfd; |
eth->rx.offset = 0; |
} |
debug (3, "RX - entering state RECV\n"); |
debug (3, "RX - entering state RECV\n"); |
eth->rx.state = ETH_RXSTATE_RECV; |
} |
else if (!TEST_FLAG( eth->regs.moder, ETH_MODER, RXEN)) { |
345,13 → 350,11
break; |
else if (nread < 0) { |
if ( errno != EAGAIN ) { |
debug (3, "recv() FAILED!\n"); |
break; |
} |
else { |
break; |
} |
} |
debug (3, "recv() FAILED!\n"); |
break; |
} |
else break; |
} |
/* If not promiscouos mode, check the destination address */ |
if (!TEST_FLAG(eth->regs.moder, ETH_MODER, PRO)) { |
if (TEST_FLAG(eth->regs.moder, ETH_MODER, IAM) && (eth->rx_buff[0] & 1)) { |
364,7 → 367,7
eth->mac_address[2] != eth->rx_buff[3] || |
eth->mac_address[1] != eth->rx_buff[4] || |
eth->mac_address[0] != eth->rx_buff[5]) |
break; |
break; |
} |
|
eth->rx.packet_length = nread; |
375,6 → 378,8
eth->rx.state = ETH_RXSTATE_WRITEFIFO; |
|
break; |
case ETH_RTX_VAPI: |
|
} |
break; |
|
415,7 → 420,8
else |
eth->rx.bd_index += 2; |
|
if ( TEST_FLAG(eth->regs.int_mask, ETH_INT_MASK, RXB_M) ) { |
if ( ( TEST_FLAG( eth->regs.int_mask, ETH_INT_MASK, RXB_M ) ) && |
( TEST_FLAG( eth->rx.bd, ETH_RX_BD, IRQ ) ) ) { |
report_interrupt( eth->mac_int ); |
} |
|
617,7 → 623,13
/* Initialize TX/RX status */ |
memset( &(eth->tx), 0, sizeof(eth->tx) ); |
memset( &(eth->rx), 0, sizeof(eth->rx) ); |
eth->rx.bd_index = eth->regs.tx_bd_num; |
eth->rx.bd_index = eth->regs.tx_bd_num; |
|
/* Initialize VAPI */ |
if (config.ethernets[i].base_vapi_id) { |
eth->base_vapi_id = config.ethernets[i].base_vapi_id; |
vapi_install_multi_handler( eth->base_vapi_id, ETH_NUM_VAPI_IDS, eth_vapi_read ); |
} |
} |
} |
/* ========================================================================= */ |
783,6 → 795,31
/* ========================================================================= */ |
|
|
/* |
* VAPI connection to outside |
*/ |
static void eth_vapi_read (unsigned long id, unsigned long data) |
{ |
unsigned long which; |
struct eth_device *eth = eth_find_vapi_device( id, &which ); |
|
debug( 5, "ETH: id %08x, data %08x\n", id, data ); |
|
if ( !eth ) { |
debug( 1, "ETH: VAPI ID %08x is not ours!\n", id ); |
return; |
} |
|
switch( which ) { |
case ETH_VAPI_DATA: |
break; |
case ETH_VAPI_CTRL: |
break; |
} |
} |
/* ========================================================================= */ |
|
|
/* When TX_BD_NUM is written, also reset current RX BD index */ |
void eth_write_tx_bd_num( struct eth_device *eth, unsigned long value ) |
{ |
816,3 → 853,20
*reladdr = addr - (*eth)->baseaddr; |
return 1; |
} |
|
/* |
* Convert VAPI id to controller struct and relative address. |
*/ |
struct eth_device *eth_find_vapi_device( unsigned long id, unsigned *which ) |
{ |
unsigned i; |
|
for ( i=0; i<config.nethernets; i++) { |
if ( (id>=eths[i].base_vapi_id) && (id < eths[i].base_vapi_id + ETH_NUM_VAPI_IDS)) { |
*which = id - eths[i].base_vapi_id; |
return &(eths[i]); |
} |
} |
|
return NULL; |
} |
/trunk/or1ksim/peripheral/ethernet_i.h
100,9 → 100,14
|
#define ETH_RTX_FILE 0 |
#define ETH_RTX_SOCK 1 |
#define ETH_RTX_VAPI 2 |
|
#define ETH_MAXPL 0x10000 |
|
enum { ETH_VAPI_DATA = 0, |
ETH_VAPI_CTRL, |
ETH_NUM_VAPI_IDS }; |
|
struct eth_device |
{ |
/* Base address in memory */ |
122,6 → 127,9
/* interrupt line */ |
unsigned long mac_int; |
|
/* VAPI ID */ |
unsigned long base_vapi_id; |
|
/* RX and TX file names and handles */ |
const char *rxfile, *txfile; |
int txfd; |
/trunk/or1ksim/peripheral/ethernet.h
141,7 → 141,7
#define ETH_TX_BD_LENGTH_OFFSET 16 |
#define ETH_TX_BD_LENGTH_WIDTH 16 |
#define ETH_TX_BD_READY_OFFSET 15 |
#define ETH_TX_BD_INTERRUPT_OFFSET 14 |
#define ETH_TX_BD_IRQ_OFFSET 14 |
#define ETH_TX_BD_WRAP_OFFSET 13 |
#define ETH_TX_BD_PAD_OFFSET 12 |
#define ETH_TX_BD_CRC_OFFSET 11 |
160,7 → 160,7
#define ETH_RX_BD_LENGTH_OFFSET 16 |
#define ETH_RX_BD_LENGTH_WIDTH 16 |
#define ETH_RX_BD_READY_OFFSET 15 |
#define ETH_RX_BD_INTERRUPT_OFFSET 14 |
#define ETH_RX_BD_IRQ_OFFSET 14 |
#define ETH_RX_BD_WRAP_OFFSET 13 |
#define ETH_RX_BD_MISS_OFFSET 7 |
#define ETH_RX_BD_UVERRUN_OFFSET 6 |
/trunk/or1ksim/sim-config.c
941,7 → 941,7
|
void eth_vapi_id () { |
if (current_device >= 0 && current_device < config.nethernets) |
config.ethernets[current_device].vapi_id = tempUL; |
config.ethernets[current_device].base_vapi_id = tempUL; |
else |
ERROR("invalid device number."); |
} |
1460,7 → 1460,7
for (i = 0; i < config.nethernets; i++) { |
fprintf (f, "%s\n {baseaddr:0x%08x, dma:%i, tx_channel:0x%08x, rx_channel:0x%08x, rxfile:\"%s\", txfile:\"%s\", vapi_id:0x%08x}", |
comma ? "," :"", config.ethernets[i].baseaddr, config.ethernets[i].dma, config.ethernets[i].tx_channel, config.ethernets[i].rx_channel, |
config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].vapi_id); |
config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].base_vapi_id); |
comma = 1; |
} |
fprintf (f, "},\n"); |