mips - for r5900 generate igen simulator.
igen - stop crash when simulator isn't multi-sim'ed
This commit is contained in:
parent
6271cadd10
commit
c4db5b04f8
@ -1,5 +1,10 @@
|
|||||||
Sat Jan 31 14:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
Sat Jan 31 14:50:27 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
* gen-engine.c (gen_engine_h): Don't assume a model is present.
|
||||||
|
(gen_engine_c): Ditto.
|
||||||
|
|
||||||
|
* igen.c (gen_run_c): Ditto.
|
||||||
|
|
||||||
* gen-engine.c (print_run_body): Use CIA_GET & CIA_SET instead of
|
* gen-engine.c (print_run_body): Use CIA_GET & CIA_SET instead of
|
||||||
CPU_CIA. Parameterize with CPU argument.
|
CPU_CIA. Parameterize with CPU argument.
|
||||||
|
|
||||||
|
@ -727,7 +727,9 @@ gen_engine_h (lf *file,
|
|||||||
for (entry = gen->tables; entry != NULL; entry = entry->next)
|
for (entry = gen->tables; entry != NULL; entry = entry->next)
|
||||||
{
|
{
|
||||||
print_engine_run_function_header (file,
|
print_engine_run_function_header (file,
|
||||||
entry->model->name,
|
(options.gen.multi_sim
|
||||||
|
? entry->model->name
|
||||||
|
: NULL),
|
||||||
is_function_declaration);
|
is_function_declaration);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -765,7 +767,9 @@ gen_engine_c(lf *file,
|
|||||||
|
|
||||||
/* output the main engine routine */
|
/* output the main engine routine */
|
||||||
print_engine_run_function_header (file,
|
print_engine_run_function_header (file,
|
||||||
entry->model->name,
|
(options.gen.multi_sim
|
||||||
|
? entry->model->name
|
||||||
|
: NULL),
|
||||||
is_function_definition);
|
is_function_definition);
|
||||||
print_run_body (file, entry->table);
|
print_run_body (file, entry->table);
|
||||||
break;
|
break;
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
Sat Jan 31 14:49:24 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
start-sanitize-r5900
|
||||||
|
* configure.in (sim_igen_filter): For r5900, use igen.
|
||||||
|
* configure: Re-generate.
|
||||||
|
|
||||||
|
end-sanitize-r5900
|
||||||
* interp.c (sim_engine_run): Add `nr_cpus' argument.
|
* interp.c (sim_engine_run): Add `nr_cpus' argument.
|
||||||
|
|
||||||
* mips.igen (model): Map processor names onto BFD name.
|
* mips.igen (model): Map processor names onto BFD name.
|
||||||
|
19
sim/mips/configure
vendored
19
sim/mips/configure
vendored
@ -1817,6 +1817,7 @@ case "${target}" in
|
|||||||
# end-sanitize-tx19
|
# end-sanitize-tx19
|
||||||
# start-sanitize-r5900
|
# start-sanitize-r5900
|
||||||
mips64r59*-*-*) sim_default_gen=IGEN
|
mips64r59*-*-*) sim_default_gen=IGEN
|
||||||
|
sim_use_gen=IGEN
|
||||||
sim_igen_machine="-M r5900"
|
sim_igen_machine="-M r5900"
|
||||||
;;
|
;;
|
||||||
# end-sanitize-r5900
|
# end-sanitize-r5900
|
||||||
@ -1872,17 +1873,17 @@ for ac_hdr in string.h strings.h stdlib.h stdlib.h
|
|||||||
do
|
do
|
||||||
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
|
||||||
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
|
||||||
echo "configure:1876: checking for $ac_hdr" >&5
|
echo "configure:1877: checking for $ac_hdr" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1881 "configure"
|
#line 1882 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include <$ac_hdr>
|
#include <$ac_hdr>
|
||||||
EOF
|
EOF
|
||||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||||
{ (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
{ (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||||
ac_err=`grep -v '^ *+' conftest.out`
|
ac_err=`grep -v '^ *+' conftest.out`
|
||||||
if test -z "$ac_err"; then
|
if test -z "$ac_err"; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
@ -1909,7 +1910,7 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
|
echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
|
||||||
echo "configure:1913: checking for fabs in -lm" >&5
|
echo "configure:1914: checking for fabs in -lm" >&5
|
||||||
ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
|
ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
|
||||||
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
@ -1917,7 +1918,7 @@ else
|
|||||||
ac_save_LIBS="$LIBS"
|
ac_save_LIBS="$LIBS"
|
||||||
LIBS="-lm $LIBS"
|
LIBS="-lm $LIBS"
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1921 "configure"
|
#line 1922 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* Override any gcc2 internal prototype to avoid an error. */
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
/* We use char because int might match the return type of a gcc2
|
/* We use char because int might match the return type of a gcc2
|
||||||
@ -1928,7 +1929,7 @@ int main() {
|
|||||||
fabs()
|
fabs()
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_lib_$ac_lib_var=yes"
|
eval "ac_cv_lib_$ac_lib_var=yes"
|
||||||
else
|
else
|
||||||
@ -1958,12 +1959,12 @@ fi
|
|||||||
for ac_func in aint anint sqrt
|
for ac_func in aint anint sqrt
|
||||||
do
|
do
|
||||||
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
|
||||||
echo "configure:1962: checking for $ac_func" >&5
|
echo "configure:1963: checking for $ac_func" >&5
|
||||||
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
|
||||||
echo $ac_n "(cached) $ac_c" 1>&6
|
echo $ac_n "(cached) $ac_c" 1>&6
|
||||||
else
|
else
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 1967 "configure"
|
#line 1968 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
/* System header to define __stub macros and hopefully few prototypes,
|
/* System header to define __stub macros and hopefully few prototypes,
|
||||||
which can conflict with char $ac_func(); below. */
|
which can conflict with char $ac_func(); below. */
|
||||||
@ -1986,7 +1987,7 @@ $ac_func();
|
|||||||
|
|
||||||
; return 0; }
|
; return 0; }
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
if { (eval echo configure:1991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
|
||||||
rm -rf conftest*
|
rm -rf conftest*
|
||||||
eval "ac_cv_func_$ac_func=yes"
|
eval "ac_cv_func_$ac_func=yes"
|
||||||
else
|
else
|
||||||
|
@ -116,6 +116,7 @@ case "${target}" in
|
|||||||
# end-sanitize-tx19
|
# end-sanitize-tx19
|
||||||
# start-sanitize-r5900
|
# start-sanitize-r5900
|
||||||
mips64r59*-*-*) sim_default_gen=IGEN
|
mips64r59*-*-*) sim_default_gen=IGEN
|
||||||
|
sim_use_gen=IGEN
|
||||||
sim_igen_machine="-M r5900"
|
sim_igen_machine="-M r5900"
|
||||||
;;
|
;;
|
||||||
# end-sanitize-r5900
|
# end-sanitize-r5900
|
||||||
|
Loading…
Reference in New Issue
Block a user