Add mips64vr5400 to configuration list

Mark mipsIV instructions as being implemented by the vr5400.
Sanitize.
This commit is contained in:
Andrew Cagney 1997-10-27 06:42:13 +00:00
parent e2880fadf3
commit 90ad43b2de
6 changed files with 637 additions and 39 deletions

View File

@ -36,15 +36,15 @@ interp.c
sim-main.h
support.h
tconfig.in
Things-to-lose:
mips.igen
mips.dc
Things-to-lose:
Do-last:
r5900_files="ChangeLog configure configure.in interp.c gencode.c"
r5900_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"
if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
for i in $r5900_files ; do
@ -74,7 +74,7 @@ else
fi
tx19_files="ChangeLog configure.in gencode.c"
tx19_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"
if ( echo $* | grep keep\-tx19 > /dev/null ) ; then
for i in $tx19_files ; do
@ -104,5 +104,56 @@ else
fi
vr5400_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"
if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
for i in $vr5400_files ; do
if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Keeping vr5400 stuff in $i
fi
fi
done
else
for i in * ; do
if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"vr5400\" from $i...
fi
cp $i new
sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
fi
mv $i .Recover
fi
mv new $i
fi
done
fi
never_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"
for i in * ; do
if test ! -d $i && (grep sanitize-cygnus-never $i > /dev/null) ; then
if [ -n "${verbose}" ] ; then
echo Removing traces of \"cygnus-never\" from $i...
fi
cp $i new
sed '/start\-sanitize\-cygnus\-never/,/end-\sanitize\-cygnus\-never/d' < $i > new
if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
if [ -n "${verbose}" ] ; then
echo Caching $i in .Recover...
fi
mv $i .Recover
fi
mv new $i
fi
done
# End of file.

View File

@ -1,9 +1,21 @@
Mon Oct 27 13:53:59 1997 Andrew Cagney <cagney@b1.cygnus.com>
start-sanitize-vr5400
* mips.igen: Tag all mipsIV instructions with vr5400 model.
* configure.in: Add mips64vr5400 target.
* configure: Re-generate.
end-sanitize-vr5400
* Makefile.in (SIM_NO_OBJ): Define, move SIM_M16_OBJ, SIM_IGEN_OBJ
to top.
(tmp-igen, tmp-m16): Pass -I srcdir to igen.
Sat Oct 25 16:51:40 1997 Gavin Koch <gavin@cygnus.com>
* gencode.c (build_instruction): Follow sim_write's lead in using
BigEndianMem instead of !ByteSwapMem.
Fri Oct 24 17:41:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in (sim_gen): Dependent on target, select type of

View File

@ -6,6 +6,27 @@
srcdir=@srcdir@
srcroot=$(srcdir)/../../
SIM_NO_OBJ =
SIM_IGEN_OBJ = \
support.o \
itable.o \
semantics.o \
idecode.o \
icache.o \
engine.o \
irun.o
SIM_M16_OBJ = \
$(SIM_IGEN_OBJ) = \
m16_support.o \
m16_itable.o \
m16_semantics.o \
m16_idecode.o \
m16_icache.o \
m16_engine.o \
m16_irun.o
SIM_OBJS = \
$(SIM_@sim_gen@_OBJ) \
interp.o \
@ -80,15 +101,6 @@ IGEN_DC=$(srcdir)/mips.dc
SIM_IGEN_CFLAGS = -DWITH_IGEN
SIM_IGEN_ALL = tmp-igen
SIM_IGEN_OBJ = \
support.o \
itable.o \
semantics.o \
idecode.o \
icache.o \
engine.o \
irun.o
BUILT_SRC_FROM_IGEN = \
icache.h \
icache.c \
@ -117,6 +129,7 @@ tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
cd ../igen && $(MAKE)
../igen/igen \
$(IGEN_TRACE) \
-I $(srcdir) \
-Werror \
-Wnodiscard \
-F 32,64,f \
@ -162,16 +175,6 @@ tmp-igen: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
SIM_M16_CFLAGS = -DWITH_IGEN
SIM_M16_ALL = tmp-igen $(SIM_M16_ALL)
SIM_M16_OBJ = \
$(SIM_IGEN_OBJ) = \
m16_support.o \
m16_itable.o \
m16_semantics.o \
m16_idecode.o \
m16_icache.o \
m16_engine.o \
m16_irun.o
BUILT_SRC_FROM_M16 = \
m16_icache.h \
m16_icache.c \
@ -200,6 +203,7 @@ tmp-m16: $(IGEN_INSN) $(IGEN_DC) ../igen/igen
cd ../igen && $(MAKE)
../igen/igen \
$(IGEN_TRACE) \
-I $(srcdir) \
-Werror \
-Wnodiscard \
-F 16 \

25
sim/mips/configure vendored
View File

@ -1773,14 +1773,17 @@ fi
#
sim_gen=NO
case "${target}" in
# start-sanitize-tx19
mipstx19*-*-*) sim_gen=M16 ;;
# end-sanitize-tx19
# start-sanitize-r5900
# mips64r59*-*-*) sim_gen=IGEN ;;
# end-sanitize-r5900
# start-sanitize-vr5400
# mips64vr54*-*-*) sim_gen=IGEN ;;
mips64vr54*-*-*) sim_gen=IGEN ;;
# end-sanitize-vr5400
# mips16*-*-*) sim_gen=M16 ;;
*) sim_gen=NO ;;
*) sim_gen=NO ;;
esac
@ -1789,17 +1792,17 @@ for ac_hdr in string.h strings.h stdlib.h stdlib.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1793: checking for $ac_hdr" >&5
echo "configure:1796: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1798 "configure"
#line 1801 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
rm -rf conftest*
@ -1826,7 +1829,7 @@ fi
done
echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
echo "configure:1830: checking for fabs in -lm" >&5
echo "configure:1833: checking for fabs in -lm" >&5
ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@ -1834,7 +1837,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1838 "configure"
#line 1841 "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
@ -1845,7 +1848,7 @@ int main() {
fabs()
; return 0; }
EOF
if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@ -1875,12 +1878,12 @@ fi
for ac_func in aint anint sqrt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:1879: checking for $ac_func" >&5
echo "configure:1882: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1884 "configure"
#line 1887 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -1903,7 +1906,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else

View File

@ -96,14 +96,17 @@ SIM_AC_OPTION_FLOAT($mips_fpu)
#
sim_gen=NO
case "${target}" in
# start-sanitize-tx19
mipstx19*-*-*) sim_gen=M16 ;;
# end-sanitize-tx19
# start-sanitize-r5900
# mips64r59*-*-*) sim_gen=IGEN ;;
# end-sanitize-r5900
# start-sanitize-vr5400
# mips64vr54*-*-*) sim_gen=IGEN ;;
mips64vr54*-*-*) sim_gen=IGEN ;;
# end-sanitize-vr5400
# mips16*-*-*) sim_gen=M16 ;;
*) sim_gen=NO ;;
*) sim_gen=NO ;;
esac
AC_SUBST(sim_gen)

File diff suppressed because it is too large Load Diff