OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/or1ksim
    from Rev 376 to Rev 385
    Reverse comparison

Rev 376 → Rev 385

/configure
1,14 → 1,16
#! /bin/sh
# From configure.ac Id: configure.ac 1111 2010-08-03 11:31:36Z jeremy using automake version AC_ACVERSION.
# From configure.ac Id: configure.ac 1175 2010-10-01 13:29:55Z jeremy using automake version AC_ACVERSION.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for or1ksim 0.5.0rc1.
# Generated by GNU Autoconf 2.65 for or1ksim 0.5.0rc2.
#
# Report bugs to <openrisc@opencores.org>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
# Foundation, Inc.
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
#
697,7 → 699,8
 
 
 
exec 7<&0 </dev/null 6>&1
test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1
 
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
719,8 → 722,8
# Identity of this package.
PACKAGE_NAME='or1ksim'
PACKAGE_TARNAME='or1ksim'
PACKAGE_VERSION='0.5.0rc1'
PACKAGE_STRING='or1ksim 0.5.0rc1'
PACKAGE_VERSION='0.5.0rc2'
PACKAGE_STRING='or1ksim 0.5.0rc2'
PACKAGE_BUGREPORT='openrisc@opencores.org'
PACKAGE_URL=''
 
1473,7 → 1476,7
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures or1ksim 0.5.0rc1 to adapt to many kinds of systems.
\`configure' configures or1ksim 0.5.0rc2 to adapt to many kinds of systems.
 
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1544,7 → 1547,7
 
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of or1ksim 0.5.0rc1:";;
short | recursive ) echo "Configuration of or1ksim 0.5.0rc2:";;
esac
cat <<\_ACEOF
 
1579,7 → 1582,7
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CCAS assembler compiler command (defaults to CC)
1651,8 → 1654,8
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
or1ksim configure 0.5.0rc1
generated by GNU Autoconf 2.64
or1ksim configure 0.5.0rc2
generated by GNU Autoconf 2.65
 
Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
1719,7 → 1722,7
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_compile
 
1756,7 → 1759,7
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_cpp
 
1891,7 → 1894,7
fi
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_run
 
1968,7 → 1971,7
# left behind by Apple's compiler. We do this before executing the actions.
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_link
 
2306,7 → 2309,7
 
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_compute_int
cat >config.log <<_ACEOF
2313,8 → 2316,8
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by or1ksim $as_me 0.5.0rc1, which was
generated by GNU Autoconf 2.64. Invocation command line was
It was created by or1ksim $as_me 0.5.0rc2, which was
generated by GNU Autoconf 2.65. Invocation command line was
 
$ $0 $@
 
2567,7 → 2570,7
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
test "x$ac_site_file" = xNONE && continue
if test -r "$ac_site_file"; then
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
2576,9 → 2579,9
done
 
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special files
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
2985,8 → 2988,8
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
rm -f conftest.er1 conftest.err
fi
rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
2993,12 → 2996,10
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
 
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
 
;
return 0;
3005,12 → 3006,12
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
# The possible output files:
3072,10 → 3073,10
else
ac_file=''
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then :
$as_echo "$as_me: failed program was:" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083,51 → 3084,18
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext
 
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
3160,7 → 3128,7
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest$ac_cv_exeext
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
 
3167,6 → 3135,65
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
 
;
return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
{ { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
if { ac_try='./conftest$ac_cv_exeext'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
4512,13 → 4539,13
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:4515: $ac_compile\"" >&5)
(eval echo "\"\$as_me:4542: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:4518: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:4545: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:4521: output\"" >&5)
(eval echo "\"\$as_me:4548: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
5723,7 → 5750,7
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 5726 "configure"' > conftest.$ac_ext
echo '#line 5753 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
6985,11 → 7012,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6988: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7015: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6992: \$? = $ac_status" >&5
echo "$as_me:7019: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
7324,11 → 7351,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7327: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7354: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:7331: \$? = $ac_status" >&5
echo "$as_me:7358: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
7429,11 → 7456,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7432: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7459: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7436: \$? = $ac_status" >&5
echo "$as_me:7463: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
7484,11 → 7511,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7487: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7514: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7491: \$? = $ac_status" >&5
echo "$as_me:7518: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
9867,7 → 9894,7
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 9870 "configure"
#line 9897 "configure"
#include "confdefs.h"
 
#if HAVE_DLFCN_H
9963,7 → 9990,7
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 9966 "configure"
#line 9993 "configure"
#include "confdefs.h"
 
#if HAVE_DLFCN_H
10504,6 → 10531,7
 
fi
 
test -d ./--version && rmdir ./--version
if test "${ac_cv_path_mkdir+set}" = set; then
MKDIR_P="$ac_cv_path_mkdir -p"
else
10511,7 → 10539,6
# value for MKDIR_P within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the value is a relative name.
test -d ./--version && rmdir ./--version
MKDIR_P="$ac_install_sh -d"
fi
fi
10690,7 → 10717,7
 
# Define the identity of the package.
PACKAGE='or1ksim'
VERSION='0.5.0rc1'
VERSION='0.5.0rc2'
 
 
cat >>confdefs.h <<_ACEOF
10873,10 → 10900,12
 
$as_echo "#define OR32_TYPES 1" >>confdefs.h
;;
 
dlx*) CPU_ARCH=dlx;
ARCH_ISA=DLX;;
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&5
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 assumed" >&2;};
 
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&5
$as_echo "$as_me: WARNING: Unknown target architecture $target_cpu: OR32 ELF assumed" >&2;};
CPU_ARCH=or32;
ARCH_ISA=OR32;
 
11356,8 → 11385,8
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
rm -f conftest.er1 conftest.err
fi
rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
13710,8 → 13739,8
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by or1ksim $as_me 0.5.0rc1, which was
generated by GNU Autoconf 2.64. Invocation command line was
This file was extended by or1ksim $as_me 0.5.0rc2, which was
generated by GNU Autoconf 2.65. Invocation command line was
 
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
13751,6 → 13780,7
 
-h, --help print this help, then exit
-V, --version print version number and configuration settings, then exit
--config print configuration, then exit
-q, --quiet, --silent
do not print progress messages
-d, --debug don't remove temporary files
13773,10 → 13803,11
 
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
or1ksim config.status 0.5.0rc1
configured by $0, generated by GNU Autoconf 2.64,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
or1ksim config.status 0.5.0rc2
configured by $0, generated by GNU Autoconf 2.65,
with options \\"\$ac_cs_config\\"
 
Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
13814,6 → 13845,8
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;;
--config | --confi | --conf | --con | --co | --c )
$as_echo "$ac_cs_config"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
14288,7 → 14321,7
t delim
:nl
h
s/\(.\{148\}\).*/\1/
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
14302,7 → 14335,7
t nl
:delim
h
s/\(.\{148\}\).*/\1/
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
/debug/rsp-server.c
1851,37 → 1851,9
}
else if (0 == strncmp ("qTStatus", buf->data, strlen ("qTStatus")))
{
/* Ask the stub if there is a trace experiment running right now.
The reply has the form:
`Trunning[;field]...'
running is a single digit 1 if the trace is presently running, or 0
if not. It is followed by semicolon-separated optional fields that an
agent may use to report additional status.
*/
put_str_packet ("T0");
}
else if ((0 == strncmp ("qTfV", buf->data, strlen ("qTfV"))) ||
(0 == strncmp ("qTsV", buf->data, strlen ("qTsV"))))
{
/*
These packets request data about trace state variables that are on the
target. gdb sends qTfV to get the first vari of data, and multiple qTsV
to get additional variables. Replies to these packets follow the syntax
of the QTDV packets that define trace state variables.
*/
/* We don't support tracing, so return empty packet. */
put_str_packet ("");
}
else if (0 == strncmp ("qTfP", buf->data, strlen ("qTfP")))
{
/*
These packets request data about tracepoints that are being used by the
target. gdb sends qTfP to get the first piece of data, and multiple
qTsP to get additional pieces. Replies to these packets generally take
the form of the QTDP packets that define tracepoints. (FIXME add
detailed syntax)
*/
put_str_packet ("");
}
else if (0 == strncmp ("qXfer:", buf->data, strlen ("qXfer:")))
{
/* For now we support no 'qXfer' requests, but these should not be
/cpu/or32/execute.c
1012,6 → 1012,12
}
}
 
/* If we are tracing, dump after each instruction. */
if (!runtime.sim.hush)
{
dumpreg ();
}
 
if (config.vapi.enabled && runtime.vapi.enabled)
{
vapi_check ();
/libtoplevel.c
103,7 → 103,6
print_config (); /* Will go eventually */
signal (SIGINT, ctrl_c); /* Not sure we want this really */
 
runtime.sim.hush = 1; /* Not sure if this is needed */
do_stats = config.cpu.superscalar ||
config.cpu.dependstats ||
config.sim.history ||
185,6 → 184,12
return runtime.cpu.halted ? OR1KSIM_RC_HALTED : OR1KSIM_RC_BRKPT;
}
 
/* If we are tracing, dump after each instruction. */
if (!runtime.sim.hush)
{
dumpreg ();
}
 
/* If we were single stepping, stall immediately. */
if (cpu_state.sprs[SPR_DMR1] & SPR_DMR1_ST)
{
568,9 → 573,9
@return Number of bytes written, or zero if error. */
/*---------------------------------------------------------------------------*/
int
or1ksim_write_mem (unsigned long int addr,
unsigned char *buf,
int len)
or1ksim_write_mem (unsigned long int addr,
const unsigned char *buf,
int len)
{
int off; /* Offset into the memory */
 
/configure.ac
28,7 → 28,7
 
# Use a full version number (x.y.z, possibly with "rcn" as a suffix) when
# preparing a release, otherwise use a the date version (yyyy-mm-dd).
AC_INIT([or1ksim], [0.5.0rc1], [openrisc@opencores.org])
AC_INIT([or1ksim], [0.5.0rc2], [openrisc@opencores.org])
AC_CONFIG_MACRO_DIR([m4])
 
# Generically use extensions such as _GNU_SOURCE if available.
56,9 → 56,11
or32*) CPU_ARCH=or32;
ARCH_ISA=OR32;
AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
 
dlx*) CPU_ARCH=dlx;
ARCH_ISA=DLX;;
*) AC_MSG_WARN(Unknown target architecture $target_cpu: OR32 assumed);
 
*) AC_MSG_WARN(Unknown target architecture $target_cpu: OR32 ELF assumed);
CPU_ARCH=or32;
ARCH_ISA=OR32;
AC_DEFINE(OR32_TYPES, 1, "The compiler uses the OR32 ELF types");;
/doc/or1ksim.info
64,7 → 64,7
Unpack the software and create a _separate_ directory in which to build
it:
 
tar jxf or1ksim-0.5.0rc1.tar.bz2
tar jxf or1ksim-0.5.0rc2.tar.bz2
mkdir builddir_or1ksim
cd builddir_or1ksim
 
81,7 → 81,7
OpenRISC 1000 32-bit architecture. If this argument is omitted, it will
default to OpenRISC 1000 32-bit with a warning
 
../or1ksim-0.5.0rc1/configure --target=or32-uclinux ...
../or1ksim-0.5.0rc2/configure --target=or32-uclinux ...
 
There are several other options available, many of which are standard
to GNU `configure' scripts. Use `configure --help' to see all the
88,10 → 88,10
options. The most useful is `--prefix' to specify a directory for
installation of the tools.
 
For testing (using `make check'), the `--target' parameter _must_ be
specified, to allow the target tool chain to be selected. If the tools
have been installed using the standard OpenRISC script, then this
should be set to `or32-elf'.
For testing (using `make check'), the `--target' parameter may be
specified, to allow the target tool chain to be selected. If not
specified, it will default to `or32-elf', which is the same prefix used
with the standard OpenRISC toolchain installation script.
 
A number of Or1ksim specific features in the simulator do require
enabling at configuration. These include
295,7 → 295,7
 
The general form the standalone command is:
 
or32-uclinux-sim [-vhiqV] [-f FILE] [--nosrv] [--srv=[N]]
or32-uclinux-sim [-vhiqVt] [-f FILE] [--nosrv] [--srv=[N]]
[-m <n>][-d STR]
[--enable-profile] [--enable-mprofile] [FILE]
 
324,8 → 324,13
"verbose" option in the simulator configuration section (see *note
Simulator Behavior: Simulator Behavior.).
 
`-t'
`--trace'
Dump previous instruction, next instruction, GPRs and flag after
each instruction.
 
`-f FILE'
`--file FILE'
`--file=FILE'
Read configuration commands from the specified file, looking first
in the current directory, and otherwise in the `$HOME/.or1k'
directory. If this argument is not specified, the file `sim.cfg'
350,7 → 355,7
`--nosrv'. If it is, a rude message is printed and the `--nosrv'
option is ignored.
 
`-m=SIZE'
`-m SIZE'
`--memory=SIZE'
Configure a memory block of SIZE bytes, starting at address zero.
The size may be followed by `k', `K', `m', `M', `g', `G', to
366,7 → 371,7
If a configuration file is also used, it should be sure not to
specify an overlapping memory block.
 
`-d=CONFIG_STRING'
`-d CONFIG_STRING'
`--debug-config=CONFIG_STRING'
Enable selected debug messages in Or1ksim. This parameter is for
use by developers only, and is not covered further here. See the
675,7 → 680,7
 
 
-- `or1ksim.h': int or1ksim_write_mem (unsigned
long int ADDR, unsigned char *BUF, int LEN)
long int ADDR, const unsigned char *BUF, int LEN)
 
Write LEN bytes to ADDR, taking the data from BUF. Return LEN on
success and 0 on failure.
1253,17 → 1258,18
may appear multiple times, specifying multiple blocks of memory.
 
Caution: The user may choose whether or not to enable a memory
controller. If a memory controller is enabled, then the standard
OpenRISC C libraries will initialize it to expect 64MB memory
blocks, and any memory declarations _must_ reflect this. The
section describing memory controller configuration describes the
steps necessary for using smaller or larger memory sections (*note
Memory Controller Configuration: Memory Controller Configuration.).
controller. If a memory controller is enabled, then appropriate
initalization code must be provided. The section describing
memory controller configuration describes the steps necessary for
using smaller or larger memory sections (*note Memory Controller
Configuration: Memory Controller Configuration.).
 
If a memory controller is _not_ enabled, then the standard C
library code will generate memory access errors. The solution is
to declare an additional writable memory block, mimicing the memory
controller's register bank as follows.
The "uClibc" startup code initalizes a memory controller, assumed
to be mapped at 0x93000000. If a memory controller is _not_
enabled, then the standard C library code will generate memory
access errors. The solution is to declare an additional writable
memory block, mimicing the memory controller's register bank as
follows.
 
section memory
pattern = 0x00
1711,10 → 1717,19
section may appear multiple times, specifying multiple memory
controllers.
 
Caution: The standard OpenRISC C libraries will initialize the
memory controller to expect 64MB memory blocks, and any memory
declarations _must_ reflect this.
Warning: There are known to be problems with the current memory
controller, which currently is not included in the regression test
suite. Users are advised not to use the memory controller in the
current release.
 
Caution: There is no initialization code in the standard "newlib"
library.
 
The standard "uClibc" library assumes a memory controller mapped
at 0x93000000 and will initialize the memory controller to expect
64MB memory blocks, and any memory declarations _must_ reflect
this.
 
If smaller memory blocks are declared with a memory controller,
then sufficient memory will not be allocated by Or1ksim, but out of
range memory accesses will not be trapped. For example declaring a
2209,6 → 2224,10
found in the `doc' subdirectory. It is a memory mapped component,
which resides on the main OpenRISC Wishbone data bus.
 
Warning: In the current release of Or1ksim, parsing of the ATA
section is broken. Users should not configure the disc interface
in this release.
 
ATA/ATAPI configuration is described in `section ata'. This section
may appear multiple times, specifying multiple disc controllers. The
following parameters may be specified.
3478,7 → 3497,7
 
* --cumulative: Profiling Utility. (line 26)
* --debug-config: Standalone Simulator.
(line 81)
(line 86)
* --disable-all-tests: Configuring the Build.
(line 105)
* --disable-arith-flag: Configuring the Build.
3506,11 → 3525,11
* --enable-execution: Configuring the Build.
(line 37)
* --enable-mprofile: Standalone Simulator.
(line 115)
(line 120)
* --enable-ov-flag: Configuring the Build.
(line 132)
* --enable-profile: Standalone Simulator.
(line 112)
(line 117)
* --enable-profiling: Configuring the Build.
(line 29)
* --enable-range-stats: Configuring the Build.
3518,7 → 3537,7
* --enable-unsigned-xori: Configuring the Build.
(line 68)
* --file: Standalone Simulator.
(line 39)
(line 44)
* --filename: Memory Profiling Utility.
(line 51)
* --generate: Profiling Utility. (line 34)
3532,20 → 3551,20
* --interactive: Standalone Simulator.
(line 25)
* --memory: Standalone Simulator.
(line 65)
(line 70)
* --mode: Memory Profiling Utility.
(line 26)
* --nosrv: Standalone Simulator.
(line 47)
(line 52)
* --quiet <1>: Profiling Utility. (line 30)
* --quiet: Standalone Simulator.
(line 29)
* --report-memory-errors: Standalone Simulator.
(line 86)
(line 91)
* --srv: Standalone Simulator.
(line 55)
(line 60)
* --strict-npc: Standalone Simulator.
(line 95)
(line 100)
* --verbose: Standalone Simulator.
(line 33)
* --version: Standalone Simulator.
3555,11 → 3574,11
* --version (profiling utility): Profiling Utility. (line 17)
* -c: Profiling Utility. (line 26)
* -d: Standalone Simulator.
(line 81)
(line 86)
* -f <1>: Memory Profiling Utility.
(line 51)
* -f: Standalone Simulator.
(line 39)
(line 44)
* -g <1>: Memory Profiling Utility.
(line 47)
* -g: Profiling Utility. (line 34)
3573,7 → 3592,7
* -m <1>: Memory Profiling Utility.
(line 26)
* -m: Standalone Simulator.
(line 65)
(line 70)
* -q <1>: Profiling Utility. (line 30)
* -q: Standalone Simulator.
(line 29)
3602,11 → 3621,11
* ATA/ATAPI configuration: Disc Interface Configuration.
(line 6)
* ATA/ATAPI device configuration: Disc Interface Configuration.
(line 88)
(line 92)
* base_vapi_id (GPIO configuration - deprecated): GPIO Configuration.
(line 32)
* baseaddr (ATA/ATAPI configuration): Disc Interface Configuration.
(line 22)
(line 26)
* baseaddr (DMA configuration): DMA Configuration. (line 24)
* baseaddr (Ethernet configuration): Ethernet Configuration.
(line 22)
3618,9 → 3637,9
* baseaddr (keyboard configuration): Keyboard Configuration.
(line 36)
* baseaddr (memory configuration): Memory Configuration.
(line 88)
(line 89)
* baseaddr (memory controller configuration): Memory Controller Configuration.
(line 46)
(line 55)
* baseaddr (UART configuration): UART Configuration. (line 22)
* baseaddr (VGA configuration): Display Interface Configuration.
(line 26)
3644,7 → 3663,7
* cache configuration: Cache Configuration. (line 6)
* calling_convention (CUC configuration): CUC Configuration. (line 37)
* ce (memory configuration): Memory Configuration.
(line 118)
(line 119)
* cfgr (CPU configuration): CPU Configuration. (line 47)
* channel (UART configuration): UART Configuration. (line 29)
* clear breakpoint (Interactive CLI): Interactive Command Line.
3757,18 → 3776,18
* DejaGNU tests directories: Regression Testing. (line 50)
* DejaGnu tool specific configuration: Regression Testing. (line 39)
* delayr (memory configuration): Memory Configuration.
(line 138)
(line 139)
* delayw (memory configuration): Memory Configuration.
(line 144)
(line 145)
* dependstats (CPU configuration): CPU Configuration. (line 89)
* dev_id (ATA/ATAPI configuration): Disc Interface Configuration.
(line 36)
(line 40)
* disassemble (Interactive CLI): Interactive Command Line.
(line 41)
* disc interface configuration: Disc Interface Configuration.
(line 6)
* disc interface device configuration: Disc Interface Configuration.
(line 88)
(line 92)
* display interface configuration: Display Interface Configuration.
(line 6)
* displaying memory (Interactive CLI): Interactive Command Line.
3782,11 → 3801,11
* DMA configuration: DMA Configuration. (line 6)
* DMA verification (VAPI): Verification API. (line 73)
* dma_mode0_td (ATA/ATAPI configuration): Disc Interface Configuration.
(line 70)
(line 74)
* dma_mode0_teoc (ATA/ATAPI configuration): Disc Interface Configuration.
(line 71)
(line 75)
* dma_mode0_tm (ATA/ATAPI configuration): Disc Interface Configuration.
(line 69)
(line 73)
* DME (power management register): Power Management Configuration.
(line 15)
* DMMU configuration: Memory Management Configuration.
3805,7 → 3824,7
(line 16)
* enable_bursts (CUC configuration): CUC Configuration. (line 41)
* enabled (ATA/ATAPI configuration): Disc Interface Configuration.
(line 18)
(line 22)
* enabled (branch prediction configuration): Branch Prediction Configuration.
(line 15)
* enabled (cache configuration): Cache Configuration. (line 11)
3824,7 → 3843,7
* enabled (keyboard configuration): Keyboard Configuration.
(line 32)
* enabled (memory controller configuration): Memory Controller Configuration.
(line 35)
(line 44)
* enabled (MMU configuration): Memory Management Configuration.
(line 12)
* enabled (power management configuration): Power Management Configuration.
3874,7 → 3893,7
* execution history (Interactive CLI): Interactive Command Line.
(line 67)
* file (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 104)
(line 108)
* file (keyboard configuration): Keyboard Configuration.
(line 51)
* filename (frame buffer configuration - deprecated): Frame Buffer Configuration.
3882,7 → 3901,7
* filename (VGA configuration - deprecated): Display Interface Configuration.
(line 47)
* firmware (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 117)
(line 121)
* flag setting by instructions: Configuring the Build.
(line 118)
* frame buffer configuration: Frame Buffer Configuration.
3901,7 → 3920,7
* hardfloat (CPU configuration): CPU Configuration. (line 110)
* hazards (CPU configuration): CPU Configuration. (line 74)
* heads (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 121)
(line 125)
* help (Interactive CLI): Interactive Command Line.
(line 170)
* hexadecimal memory dump (Interactive CLI): Interactive Command Line.
3925,7 → 3944,7
* IMMU configuration: Memory Management Configuration.
(line 6)
* index (memory controller configuration): Memory Controller Configuration.
(line 68)
(line 77)
* info (Interactive CLI): Interactive Command Line.
(line 119)
* installing Or1ksim: Installation. (line 6)
3939,7 → 3958,7
* interrupt controller configuration: Interrupt Configuration.
(line 6)
* irq (ATA/ATAPI configuration): Disc Interface Configuration.
(line 32)
(line 36)
* irq (DMA configuration): DMA Configuration. (line 34)
* irq (GPIO configuration): GPIO Configuration. (line 29)
* irq (keyboard configuration): Keyboard Configuration.
3960,13 → 3979,13
* load_missdelay (data cache configuration): Cache Configuration.
(line 50)
* log (memory configuration): Memory Configuration.
(line 150)
(line 151)
* log_enabled (verification API configuration): Verification API Configuration.
(line 28)
* long: Simulator Library. (line 95)
* make file for tests: Regression Testing. (line 27)
* mc (memory configuration): Memory Configuration.
(line 127)
(line 128)
* memory configuration: Memory Configuration.
(line 6)
* memory controller configuration: Memory Controller Configuration.
4009,11 → 4028,11
(line 173)
* mprofile (simulator configuration): Simulator Behavior. (line 29)
* mwdma (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 128)
(line 132)
* name (generic peripheral configuration): Generic Peripheral Configuration.
(line 42)
* name (memory configuration): Memory Configuration.
(line 109)
(line 110)
* no_multicycle (CUC configuration): CUC Configuration. (line 45)
* nsets (cache configuration): Cache Configuration. (line 15)
* nsets (MMU configuration): Memory Management Configuration.
4044,7 → 4063,7
* overflow flag setting by instructions: Configuring the Build.
(line 133)
* packet (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 113)
(line 117)
* pagesize (MMU configuration): Memory Management Configuration.
(line 27)
* patching memory (Interactive CLI): Interactive Command Line.
4054,21 → 4073,21
* patching the program counter (Interactive CLI): Interactive Command Line.
(line 51)
* pattern (memory configuration): Memory Configuration.
(line 76)
(line 77)
* pc (Interactive CLI): Interactive Command Line.
(line 51)
* PIC configuration: Interrupt Configuration.
(line 6)
* pio (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 132)
(line 136)
* pio_mode0_t1 (ATA/ATAPI configuration): Disc Interface Configuration.
(line 51)
(line 55)
* pio_mode0_t2 (ATA/ATAPI configuration): Disc Interface Configuration.
(line 52)
(line 56)
* pio_mode0_t4 (ATA/ATAPI configuration): Disc Interface Configuration.
(line 53)
(line 57)
* pio_mode0_teoc (ATA/ATAPI configuration): Disc Interface Configuration.
(line 54)
(line 58)
* pm (Interactive CLI): Interactive Command Line.
(line 48)
* PMR - DGCE: Power Management Configuration.
4084,7 → 4103,7
* PMU configuration: Power Management Configuration.
(line 6)
* poc (memory controller configuration): Memory Controller Configuration.
(line 55)
(line 64)
* port range for TCP/IP: Verification API Configuration.
(line 23)
* power management configuration: Power Management Configuration.
4128,7 → 4147,7
* r (Interactive CLI): Interactive Command Line.
(line 14)
* random_seed (memory configuration): Memory Configuration.
(line 66)
(line 67)
* refresh_rate (frame buffer configuration): Frame Buffer Configuration.
(line 30)
* refresh_rate (VGA configuration): Display Interface Configuration.
4144,9 → 4163,9
* Remote Serial Protocol: Debug Interface Configuration.
(line 20)
* Remote Serial Protocol, --nosrv: Standalone Simulator.
(line 47)
(line 52)
* Remote Serial Protocol, --srv: Standalone Simulator.
(line 55)
(line 60)
* reset (Interactive CLI): Interactive Command Line.
(line 63)
* reset hooks: Concepts. (line 13)
4153,7 → 4172,7
* reset the simulator (Interactive CLI): Interactive Command Line.
(line 63)
* rev (ATA/ATAPI configuration): Disc Interface Configuration.
(line 44)
(line 48)
* rev (CPU configuration): CPU Configuration. (line 15)
* rsp_enabled (debug interface configuration): Debug Interface Configuration.
(line 20)
4229,7 → 4248,7
* sections: Global Data Structures.
(line 49)
* sectors (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 125)
(line 129)
* server_port (verification API configuration): Verification API Configuration.
(line 19)
* set (Interactive CLI): Interactive Command Line.
4248,11 → 4267,11
* simulator statistics (Interactive CLI): Interactive Command Line.
(line 83)
* size (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 109)
(line 113)
* size (generic peripheral configuration): Generic Peripheral Configuration.
(line 30)
* size (memory configuration): Memory Configuration.
(line 93)
(line 94)
* sleep mode (power management register): Power Management Configuration.
(line 16)
* slow down factor (power management register): Power Management Configuration.
4315,17 → 4334,17
* txfile (VGA configuration): Display Interface Configuration.
(line 47)
* type (ATA/ATAPI device configuration): Disc Interface Configuration.
(line 99)
(line 103)
* type (memory configuration): Memory Configuration.
(line 36)
(line 37)
* type=pattern (memory configuration): Memory Configuration.
(line 46)
(line 47)
* type=random (memory configuration): Memory Configuration.
(line 40)
(line 41)
* type=unknown (memory configuration): Memory Configuration.
(line 50)
(line 51)
* type=zero (memory configuration): Memory Configuration.
(line 55)
(line 56)
* UART configuration: UART Configuration. (line 6)
* UART I/O from/to a physical serial port: UART Configuration.
(line 62)
4378,51 → 4397,51
Node: Installation1224
Node: Preparation1471
Node: Configuring the Build1764
Node: Build and Install7880
Node: Known Issues8658
Node: Usage9713
Node: Standalone Simulator9927
Node: Profiling Utility14342
Node: Memory Profiling Utility15252
Node: Simulator Library16617
Node: Configuration26694
Node: Configuration File Format27306
Node: Configuration File Preprocessing27691
Node: Configuration File Syntax27988
Node: Simulator Configuration30773
Node: Simulator Behavior31064
Node: Verification API Configuration35645
Node: CUC Configuration37585
Node: Core OpenRISC Configuration39577
Node: CPU Configuration40079
Node: Memory Configuration44198
Node: Memory Management Configuration50689
Node: Cache Configuration53066
Node: Interrupt Configuration55452
Node: Power Management Configuration56188
Node: Branch Prediction Configuration57465
Node: Debug Interface Configuration58825
Node: Peripheral Configuration61168
Node: Memory Controller Configuration61794
Node: UART Configuration65209
Node: DMA Configuration68728
Node: Ethernet Configuration70595
Node: GPIO Configuration74571
Node: Display Interface Configuration76204
Node: Frame Buffer Configuration78513
Node: Keyboard Configuration80377
Node: Disc Interface Configuration82615
Node: Generic Peripheral Configuration87558
Node: Interactive Command Line89853
Node: Verification API96827
Node: Code Internals101257
Node: Coding Conventions101840
Node: Global Data Structures106267
Node: Concepts108924
Ref: Output Redirection109069
Node: Internal Debugging109608
Node: Regression Testing110132
Node: GNU Free Documentation License113921
Node: Index136328
Node: Build and Install7906
Node: Known Issues8684
Node: Usage9739
Node: Standalone Simulator9953
Node: Profiling Utility14478
Node: Memory Profiling Utility15388
Node: Simulator Library16753
Node: Configuration26836
Node: Configuration File Format27448
Node: Configuration File Preprocessing27833
Node: Configuration File Syntax28130
Node: Simulator Configuration30915
Node: Simulator Behavior31206
Node: Verification API Configuration35787
Node: CUC Configuration37727
Node: Core OpenRISC Configuration39719
Node: CPU Configuration40221
Node: Memory Configuration44340
Node: Memory Management Configuration50848
Node: Cache Configuration53225
Node: Interrupt Configuration55611
Node: Power Management Configuration56347
Node: Branch Prediction Configuration57624
Node: Debug Interface Configuration58984
Node: Peripheral Configuration61327
Node: Memory Controller Configuration61953
Node: UART Configuration65733
Node: DMA Configuration69252
Node: Ethernet Configuration71119
Node: GPIO Configuration75095
Node: Display Interface Configuration76728
Node: Frame Buffer Configuration79037
Node: Keyboard Configuration80901
Node: Disc Interface Configuration83139
Node: Generic Peripheral Configuration88243
Node: Interactive Command Line90538
Node: Verification API97512
Node: Code Internals101942
Node: Coding Conventions102525
Node: Global Data Structures106952
Node: Concepts109609
Ref: Output Redirection109754
Node: Internal Debugging110293
Node: Regression Testing110817
Node: GNU Free Documentation License114606
Node: Index137013

End Tag Table
/doc/or1ksim.texi
111,9 → 111,9
directory for installation of the tools.
 
For testing (using @command{make check}), the @code{--target} parameter
@emph{must} be specified, to allow the target tool chain to be
selected. If the tools have been installed using the standard OpenRISC
script, then this should be set to @code{or32-elf}.
may be specified, to allow the target tool chain to be selected. If not
specified, it will default to @code{or32-elf}, which is the same prefix
used with the standard OpenRISC toolchain installation script.
 
A number of @value{OR1KSIM} specific features in the simulator do
require enabling at configuration. These include
362,7 → 362,7
The general form the standalone command is:
 
@example
or32-uclinux-sim [-vhiqV] [-f @var{file}] [--nosrv] [--srv=[@var{n}]]
or32-uclinux-sim [-vhiqVt] [-f @var{file}] [--nosrv] [--srv=[@var{n}]]
[-m <n>][-d @var{str}]
[--enable-profile] [--enable-mprofile] [@var{file}]
@end example
405,8 → 405,15
Generate extra output messages (equivalent of specifying the ``verbose''
option in the simulator configuration section (see @pxref{Simulator Behavior, , Simulator Behavior}).
 
@item -t
@itemx --trace
@cindex @code{-V}
@cindex @code{--verbose}
Dump previous instruction, next instruction, GPRs and flag after each
instruction.
 
@item -f @var{file}
@itemx --file @var{file}
@itemx --file=@var{file}
@cindex @code{-f}
@cindex @code{--file}
Read configuration commands from the specified file, looking first in
436,7 → 443,7
@code{--nosrv}. If it is, a rude message is printed and the
@code{--nosrv} option is ignored.
 
@item -m=@var{size}
@item -m @var{size}
@itemx --memory=@var{size}
@cindex @code{-m}
@cindex @code{--memory}
455,7 → 462,7
If a configuration file is also used, it should be sure not to specify
an overlapping memory block.
 
@item -d=@var{config_string}
@item -d @var{config_string}
@itemx --debug-config=@var{config_string}
@cindex @code{-d}
@cindex @code{--debug-config}
827,7 → 834,7
@end deftypefn
 
@deftypefn {@file{or1ksim.h}} int or1ksim_write_mem (unsigned
long int @var{addr}, unsigned char *@var{buf}, int @var{len})
long int @var{addr}, const unsigned char *@var{buf}, int @var{len})
 
Write @var{len} bytes to @var{addr}, taking the data from @var{buf}.
Return @var{len} on success and 0 on failure.
1524,17 → 1531,17
 
@quotation Caution
The user may choose whether or not to enable a memory controller. If a
memory controller is enabled, then the standard OpenRISC C libraries
will initialize it to expect 64MB memory blocks, and any memory
declarations @emph{must} reflect this. The section describing memory
controller configuration describes the steps necessary for using smaller
or larger memory sections (@pxref{Memory Controller Configuration, ,
Memory Controller Configuration}).
memory controller is enabled, then appropriate initalization code must
be provided. The section describing memory controller configuration
describes the steps necessary for using smaller or larger memory
sections (@pxref{Memory Controller Configuration, , Memory Controller
Configuration}).
 
If a memory controller is @emph{not} enabled, then the standard C
library code will generate memory access errors. The solution is to
declare an additional writable memory block, mimicing the memory
controller's register bank as follows.
The @dfn{uClibc} startup code initalizes a memory controller, assumed to
be mapped at 0x93000000. If a memory controller is @emph{not} enabled,
then the standard C library code will generate memory access errors.
The solution is to declare an additional writable memory block, mimicing
the memory controller's register bank as follows.
 
@example
section memory
2093,11 → 2100,21
mc}}. This section may appear multiple times, specifying multiple
memory controllers.
 
@quotation Warning
There are known to be problems with the current memory controller, which
currently is not included in the regression test suite. Users are
advised not to use the memory controller in the current release.
@end quotation
 
@quotation Caution
The standard OpenRISC C libraries will initialize the memory
controller to expect 64MB memory blocks, and any memory declarations
@emph{must} reflect this.
There is no initialization code in the standard @dfn{newlib}
library.
 
The standard @dfn{uClibc} library assumes a memory controller
mapped at 0x93000000 and will initialize the memory controller to expect
64MB memory blocks, and any memory declarations @emph{must} reflect
this.
 
If smaller memory blocks are declared with a memory controller, then
sufficient memory will not be allocated by @value{OR1KSIM}, but out of
range memory accesses will not be trapped. For example declaring a
2688,6 → 2705,11
memory mapped component, which resides on the main OpenRISC Wishbone
data bus.
 
@quotation Warning
In the current release of Or1ksim, parsing of the ATA section is
broken. Users should not configure the disc interface in this release.
@end quotation
 
ATA/ATAPI configuration is described in @code{@w{section ata}}. This section
may appear multiple times, specifying multiple disc controllers. The
following parameters may be specified.
/doc/version.texi
1,4 → 1,4
@set UPDATED 7 September 2010
@set UPDATED-MONTH September 2010
@set EDITION 0.5.0rc1
@set VERSION 0.5.0rc1
@set UPDATED 2 October 2010
@set UPDATED-MONTH October 2010
@set EDITION 0.5.0rc2
@set VERSION 0.5.0rc2
/or1ksim.h
94,9 → 94,9
unsigned char *buf,
int len);
 
int or1ksim_write_mem (unsigned long int addr,
unsigned char *buf,
int len);
int or1ksim_write_mem (unsigned long int addr,
const unsigned char *buf,
int len);
 
int or1ksim_read_spr (int sprnum,
unsigned long int *sprval_ptr);
/NEWS
2,6 → 2,22
==================================================
 
 
New in release 0.5.0rc2
=======================
 
No new features. This is purely bug fixes post-0.5.0rc1.
 
The following bugs are fixed.
* Bug 1824: Memory controller issue (marked as duplicate of Bug 1758).
* Bug 1816: Error message when target not set is obscure.
* Bug 1813: "make check" fails before installation.
 
The following bugs are outstanding
* Bug 1823: Configuration file error line numbers are wrong.
* Bug 1822: ATA configuration is broken. Documented in user guide.
* Bug 1758: Memory controller issues. Workaround in the user guide.
 
 
New in release 0.5.0rc1
=======================
 
37,8 → 53,6
The following feature requests have been accepted.
* Feature 393: Integrate Or1ksim in GDB.
 
The following feature requests have been rejected.
 
The following bugs are fixed.
* Bug 1821: Reference configuration file has defective debug section.
* Bug 1817: Reference configuration file missing from distribution.
/ChangeLog
1,7 → 1,46
2010-10-02 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* Release 0.5.0rc2.
 
2010-10-02 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* configure: Regenerated.
* configure.ac: Version changed to 0.5.0rc2.
* debug/rsp-server.c (rsp_query): Simplified handling of
"qTStatus" to indicate we just do not support tracing.
* doc/or1ksim.texi <Configuring the Build>: No longer mandatory to
specify the target.
<Memory Configuration>: Warns about issues with memory controller.
<Memory Controller Configuration>: Warns about issues with memory
controller and advises not to use it.
<Standalone Simulator>: Details for options with arguments updated.
* NEWS: Updated for 0.5.0rc2.
* peripheral/mc.c (mc_poc): Use constant MC_POC_VALID
(mc_index): Ensure value is valid.
* peripheral/mc-defines.h <MC_CE_VALID>: Defined.
 
2010-09-30 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* configure.ac: Minor tidy ups.
* configure: Regenerated.
 
2010-09-24 Julius Baxter <julius.baxter@orsoc.se>
 
* debug/rsp-server.c: Added rsp_query handler entries for new packets
seen with gdb-7.2.
seen with gdb-7.2.
 
2010-09-20 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* cpu/or32/execute.c (exec_main): Dump regs if tracing enabled.
* doc/or1ksim.texi <Usage>: Document -t/--trace.
<Simulator Library>: or1ksim_write_mem second argument is now
const.
* libtoplevel.c (or1ksim_run): Dump regs if tracing enabled.
(or1ksim_write_mem): Second argument is now const.
* or1ksim.h <or1ksim_write_mem>: Second argument is now const.
* sim-config.c (parse_args): New option -t/--trace.
* toplevel.c (main): Remove setting of runtim.sim.hush.
 
2010-09-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* config.h.in: Regenerated.
/testsuite/test-code-or1k/configure
1,13 → 1,15
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.64 for or1ksim-testsuite 0.5.0rc1.
# Generated by GNU Autoconf 2.65 for or1ksim-testsuite 0.5.0rc2.
#
# Report bugs to <openrisc@opencores.org>.
#
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
# Foundation, Inc.
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
# Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
676,7 → 678,8
 
 
 
exec 7<&0 </dev/null 6>&1
test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1
 
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
698,8 → 701,8
# Identity of this package.
PACKAGE_NAME='or1ksim-testsuite'
PACKAGE_TARNAME='or1ksim-testsuite'
PACKAGE_VERSION='0.5.0rc1'
PACKAGE_STRING='or1ksim-testsuite 0.5.0rc1'
PACKAGE_VERSION='0.5.0rc2'
PACKAGE_STRING='or1ksim-testsuite 0.5.0rc2'
PACKAGE_BUGREPORT='openrisc@opencores.org'
PACKAGE_URL=''
 
1421,7 → 1424,7
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures or1ksim-testsuite 0.5.0rc1 to adapt to many kinds of systems.
\`configure' configures or1ksim-testsuite 0.5.0rc2 to adapt to many kinds of systems.
 
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1492,7 → 1495,7
 
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of or1ksim-testsuite 0.5.0rc1:";;
short | recursive ) echo "Configuration of or1ksim-testsuite 0.5.0rc2:";;
esac
cat <<\_ACEOF
 
1525,7 → 1528,7
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
CCAS assembler compiler command (defaults to CC)
1597,8 → 1600,8
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
or1ksim-testsuite configure 0.5.0rc1
generated by GNU Autoconf 2.64
or1ksim-testsuite configure 0.5.0rc2
generated by GNU Autoconf 2.65
 
Copyright (C) 2009 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
1645,7 → 1648,7
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_compile
 
1691,7 → 1694,7
# left behind by Apple's compiler. We do this before executing the actions.
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_link
 
1759,7 → 1762,7
ac_retval=1
fi
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_cpp
 
1801,7 → 1804,7
fi
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
return $ac_retval
as_fn_set_status $ac_retval
 
} # ac_fn_c_try_run
 
2022,8 → 2025,8
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by or1ksim-testsuite $as_me 0.5.0rc1, which was
generated by GNU Autoconf 2.64. Invocation command line was
It was created by or1ksim-testsuite $as_me 0.5.0rc2, which was
generated by GNU Autoconf 2.65. Invocation command line was
 
$ $0 $@
 
2276,7 → 2279,7
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
test "x$ac_site_file" = xNONE && continue
if test -r "$ac_site_file"; then
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
2285,9 → 2288,9
done
 
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special files
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
2812,8 → 2815,8
... rest of stderr output deleted ...
10q' conftest.err >conftest.er1
cat conftest.er1 >&5
rm -f conftest.er1 conftest.err
fi
rm -f conftest.er1 conftest.err
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
done
2820,12 → 2823,10
 
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
 
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
 
;
return 0;
2832,12 → 2833,12
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
# The possible output files:
2899,10 → 2900,10
else
ac_file=''
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
if test -z "$ac_file"; then :
$as_echo "$as_me: failed program was:" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
 
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910,51 → 2911,18
{ as_fn_set_status 77
as_fn_error "C compiler cannot create executables
See \`config.log' for more details." "$LINENO" 5; }; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext
 
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
 
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
2987,7 → 2955,7
as_fn_error "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." "$LINENO" 5; }
fi
rm -f conftest$ac_cv_exeext
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
 
2994,6 → 2962,65
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
return ferror (f) || fclose (f) != 0;
 
;
return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
{ { ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }
if { ac_try='./conftest$ac_cv_exeext'
{ { case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." "$LINENO" 5; }
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
 
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if test "${ac_cv_objext+set}" = set; then :
3841,13 → 3868,13
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:3844: $ac_compile\"" >&5)
(eval echo "\"\$as_me:3871: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:3847: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval echo "\"\$as_me:3874: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:3850: output\"" >&5)
(eval echo "\"\$as_me:3877: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
5053,7 → 5080,7
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 5056 "configure"' > conftest.$ac_ext
echo '#line 5083 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
6583,11 → 6610,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6586: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6613: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6590: \$? = $ac_status" >&5
echo "$as_me:6617: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
6922,11 → 6949,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6925: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6952: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6929: \$? = $ac_status" >&5
echo "$as_me:6956: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
7027,11 → 7054,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7030: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7057: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7034: \$? = $ac_status" >&5
echo "$as_me:7061: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
7082,11 → 7109,11
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
(eval echo "\"\$as_me:7112: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:7089: \$? = $ac_status" >&5
echo "$as_me:7116: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
9465,7 → 9492,7
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 9468 "configure"
#line 9495 "configure"
#include "confdefs.h"
 
#if HAVE_DLFCN_H
9561,7 → 9588,7
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 9564 "configure"
#line 9591 "configure"
#include "confdefs.h"
 
#if HAVE_DLFCN_H
10102,6 → 10129,7
 
fi
 
test -d ./--version && rmdir ./--version
if test "${ac_cv_path_mkdir+set}" = set; then
MKDIR_P="$ac_cv_path_mkdir -p"
else
10109,7 → 10137,6
# value for MKDIR_P within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the value is a relative name.
test -d ./--version && rmdir ./--version
MKDIR_P="$ac_install_sh -d"
fi
fi
10288,7 → 10315,7
 
# Define the identity of the package.
PACKAGE='or1ksim-testsuite'
VERSION='0.5.0rc1'
VERSION='0.5.0rc2'
 
 
cat >>confdefs.h <<_ACEOF
10461,6 → 10488,19
# make sure we are using a recent autoconf version
 
 
# This is not nice, but it gets round the problem of the target not being
# specified. We don't need to warn again - the main configure did that for us.
case "$target_cpu" in
or32*)
;;
 
dlx*)
;;
 
*) target_alias=or32-elf;
;;
esac
 
# check for --enable-all-tests argument, in which case we attempt to build all
# tests, even those that do not compile properly.
# Check whether --enable-all-tests was given.
11702,8 → 11742,8
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by or1ksim-testsuite $as_me 0.5.0rc1, which was
generated by GNU Autoconf 2.64. Invocation command line was
This file was extended by or1ksim-testsuite $as_me 0.5.0rc2, which was
generated by GNU Autoconf 2.65. Invocation command line was
 
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
11743,6 → 11783,7
 
-h, --help print this help, then exit
-V, --version print version number and configuration settings, then exit
--config print configuration, then exit
-q, --quiet, --silent
do not print progress messages
-d, --debug don't remove temporary files
11765,10 → 11806,11
 
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
or1ksim-testsuite config.status 0.5.0rc1
configured by $0, generated by GNU Autoconf 2.64,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
or1ksim-testsuite config.status 0.5.0rc2
configured by $0, generated by GNU Autoconf 2.65,
with options \\"\$ac_cs_config\\"
 
Copyright (C) 2009 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
11806,6 → 11848,8
ac_cs_recheck=: ;;
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
$as_echo "$ac_cs_version"; exit ;;
--config | --confi | --conf | --con | --co | --c )
$as_echo "$ac_cs_config"; exit ;;
--debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
12286,7 → 12330,7
t delim
:nl
h
s/\(.\{148\}\).*/\1/
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
12300,7 → 12344,7
t nl
:delim
h
s/\(.\{148\}\).*/\1/
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
/testsuite/test-code-or1k/configure.ac
24,7 → 24,7
# directory. This uses a different tool chain, so has its own configuration
# script. Process this file with autoconf to produce a configure script.
 
AC_INIT([or1ksim-testsuite], [0.5.0rc1], [openrisc@opencores.org])
AC_INIT([or1ksim-testsuite], [0.5.0rc2], [openrisc@opencores.org])
AC_CONFIG_MACRO_DIR([m4])
 
AC_PROG_LIBTOOL
34,6 → 34,19
# make sure we are using a recent autoconf version
AC_PREREQ(2.59)
 
# This is not nice, but it gets round the problem of the target not being
# specified. We don't need to warn again - the main configure did that for us.
case "$target_cpu" in
or32*)
;;
 
dlx*)
;;
 
*) target_alias=or32-elf;
;;
esac
 
# check for --enable-all-tests argument, in which case we attempt to build all
# tests, even those that do not compile properly.
AC_ARG_ENABLE(
/testsuite/test-code-or1k/ChangeLog
1,3 → 1,18
2010-10-02 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* Release 0.5.0rc2.
 
2010-10-02 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* configure: Regenerated.
* configure.ac: Version changed to 0.5.0rc2.
* support/spr-defs.h <SPR_VR_RES>: Definition corrected.
 
2010-09-30 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* configure: Regenerated.
* configure.ac: Handle the case where target_cpu is not set.
 
2010-09-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
 
* mc-common/except-mc.S: Remove leading underscores from global
/testsuite/test-code-or1k/support/spr-defs.h
166,7 → 166,7
*/
#define SPR_VR_VER 0xff000000 /* Processor version */
#define SPR_VR_CFG 0x00ff0000 /* Processor configuration */
#define SPR_VR_RES 0x00ff0000 /* Reserved */
#define SPR_VR_RES 0x0000ffc0 /* Reserved */
#define SPR_VR_REV 0x0000003f /* Processor revision */
 
#define SPR_VR_VER_OFF 24
/testsuite/test-code-or1k/aclocal.m4
13,8 → 13,8
 
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
[m4_warning([this file was generated for autoconf 2.64.
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
[m4_warning([this file was generated for autoconf 2.65.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.])])
/peripheral/mc.c
354,23 → 354,41
{
struct mc *mc = dat;
 
if (val.int_val > 0xf)
if (val.int_val > MC_POC_VALID)
{
fprintf (stderr, "Warning: memory controller PoC > 4 bits: truncated\n");
fprintf (stderr, "Warning: memory controller PoC > 0x%lx: truncated\n",
MC_POC_VALID);
}
 
mc->poc = val.int_val & 0xf;
mc->poc = val.int_val & MC_POC_VALID;
 
} /* mc_poc() */
 
 
/*---------------------------------------------------------------------------*/
/*!Set the index of this memory controller.
 
This identifies which chip enable value will select this memory
controller. Truncate if the value is too large with a warning.
 
@param[in] val The value to use
@param[in] dat The config data structure */
/*---------------------------------------------------------------------------*/
static void
mc_index (union param_val val, void *dat)
{
struct mc *mc = dat;
mc->index = val.int_val;
 
if (val.int_val > MC_CE_VALID)
{
fprintf (stderr, "Warning: memory controller index > 0x%x: truncated.\n",
MC_CE_VALID);
}
mc->index = val.int_val & MC_CE_VALID;
}
 
 
/*---------------------------------------------------------------------------*/
/*!Initialize a new memory controller configuration
 
/peripheral/mc-defines.h
61,6 → 61,7
#define MC_CSC_MEMTYPE_ASYNC 2
#define MC_CSC_MEMTYPE_SYNC 3
 
#define MC_CE_VALID (N_CE - 1)
#define MC_CSR_VALID 0xFF000703LU
#define MC_POC_VALID 0x0000000FLU
#define MC_BA_MASK_VALID 0x000003FFLU
/toplevel.c
75,7 → 75,6
print_config ();
signal (SIGINT, ctrl_c);
 
runtime.sim.hush = 1;
do_stats = config.cpu.superscalar ||
config.cpu.dependstats ||
config.sim.history ||
/sim-config.c
942,6 → 942,7
struct arg_lit *command;
struct arg_lit *quiet;
struct arg_lit *verbose;
struct arg_lit *trace;
struct arg_lit *report_mem_errs;
struct arg_lit *strict_npc;
struct arg_lit *profile;
955,8 → 956,9
cfg_file = arg_file0 ("f", "file", "<file>",
"config file (default \"sim.cfg\")");
cfg_file->filename[0] = "sim.cfg";
nosrv = arg_lit0 (NULL, "nosrv", "do not launch JTAG proxy server");
srv = arg_int0 (NULL, "srv", "<n>", "port number (default random)");
nosrv = arg_lit0 (NULL, "nosrv", "do not launch debug server");
srv = arg_int0 (NULL, "srv", "<n>",
"launch debug server on port (default random)");
srv->ival[0] = rand () % (65536 - 49152) + 49152;
srv->hdr.flag |= ARG_HASOPTVALUE;
mem = arg_str0 ("m", "memory", "<n>", "add memory block of <n> bytes");
964,6 → 966,7
command = arg_lit0 ("i", "interactive", "launch interactive prompt");
quiet = arg_lit0 ("q", "quiet", "minimal message output");
verbose = arg_lit0 ("V", "verbose", "verbose message output");
trace = arg_lit0 ("t", "trace", "trace each instruction");
report_mem_errs = arg_lit0 (NULL, "report-memory-errors",
"Report out of memory accesses");
strict_npc = arg_lit0 (NULL, "strict-npc", "setting NPC flushes pipeline");
984,6 → 987,7
command,
quiet,
verbose,
trace,
report_mem_errs,
strict_npc,
profile,
1041,6 → 1045,9
config.sim.verbose = verbose->count;
}
 
/* Request for tracing */
runtime.sim.hush = trace->count ? 0 : 1;
 
/* Request for memory errors */
config.sim.report_mem_errs = report_mem_errs->count;
 
/aclocal.m4
13,8 → 13,8
 
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
[m4_warning([this file was generated for autoconf 2.64.
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
[m4_warning([this file was generated for autoconf 2.65.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically `autoreconf'.])])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.