From 1e608f986c4f02941e9e59c00babc379cb7bfc6d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 4 Sep 1999 17:14:37 +0000 Subject: [PATCH] 1999-09-04 Steve Chamberlain * pj-opc.c: New file. * pj-dis.c: New file. * disassemble.c (disassembler): Handle bfd_arch_pj. * configure.in: Handle bfd_pj_arch. * Makefile.am: Rebuild dependencies. (CFILES): Add pj-dis.c and pj-opc.c. (ALL_MACHINES): Add pj-dis.lo and pj-opc.lo. * configure, Makefile.in: Rebuild. --- opcodes/ChangeLog | 11 + opcodes/Makefile.am | 7 + opcodes/Makefile.in | 7 + opcodes/configure | 346 +++++++++++++-------------- opcodes/configure.in | 1 + opcodes/disassemble.c | 6 + opcodes/pj-dis.c | 175 ++++++++++++++ opcodes/pj-opc.c | 536 ++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 919 insertions(+), 170 deletions(-) create mode 100644 opcodes/pj-dis.c create mode 100644 opcodes/pj-opc.c diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 12e667bc1f..34f99fa272 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,14 @@ +1999-09-04 Steve Chamberlain + + * pj-opc.c: New file. + * pj-dis.c: New file. + * disassemble.c (disassembler): Handle bfd_arch_pj. + * configure.in: Handle bfd_pj_arch. + * Makefile.am: Rebuild dependencies. + (CFILES): Add pj-dis.c and pj-opc.c. + (ALL_MACHINES): Add pj-dis.lo and pj-opc.lo. + * configure, Makefile.in: Rebuild. + 1999-09-04 H.J. Lu * i386-dis.c (print_insn_i386): Set bytes_per_line to 7. diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am index 71a1e99433..60d17f636d 100644 --- a/opcodes/Makefile.am +++ b/opcodes/Makefile.am @@ -70,6 +70,8 @@ CFILES = \ m10300-dis.c \ m10300-opc.c \ ns32k-dis.c \ + pj-dis.c \ + pj-opc.c \ ppc-dis.c \ ppc-opc.c \ sh-dis.c \ @@ -126,6 +128,8 @@ ALL_MACHINES = \ mips-dis.lo \ mips-opc.lo \ mips16-opc.lo \ + pj-dis.lo \ + pj-opc.lo \ ppc-dis.lo \ ppc-opc.lo \ ns32k-dis.lo \ @@ -334,6 +338,9 @@ m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \ opintl.h +pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \ + $(BFD_H) $(INCDIR)/ansidecl.h +pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \ diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in index 2a8dc1db9c..4183ac7bdf 100644 --- a/opcodes/Makefile.in +++ b/opcodes/Makefile.in @@ -176,6 +176,8 @@ CFILES = \ m10300-dis.c \ m10300-opc.c \ ns32k-dis.c \ + pj-dis.c \ + pj-opc.c \ ppc-dis.c \ ppc-opc.c \ sh-dis.c \ @@ -233,6 +235,8 @@ ALL_MACHINES = \ mips-dis.lo \ mips-opc.lo \ mips16-opc.lo \ + pj-dis.lo \ + pj-opc.lo \ ppc-dis.lo \ ppc-opc.lo \ ns32k-dis.lo \ @@ -833,6 +837,9 @@ m10300-opc.lo: m10300-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/mn10300.h ns32k-dis.lo: ns32k-dis.c $(BFD_H) $(INCDIR)/ansidecl.h \ sysdep.h config.h $(INCDIR)/dis-asm.h $(INCDIR)/opcode/ns32k.h \ opintl.h +pj-dis.lo: pj-dis.c $(INCDIR)/opcode/pj.h $(INCDIR)/dis-asm.h \ + $(BFD_H) $(INCDIR)/ansidecl.h +pj-opc.lo: pj-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/pj.h ppc-dis.lo: ppc-dis.c $(INCDIR)/ansidecl.h sysdep.h \ config.h $(INCDIR)/dis-asm.h $(BFD_H) $(INCDIR)/opcode/ppc.h ppc-opc.lo: ppc-opc.c $(INCDIR)/ansidecl.h $(INCDIR)/opcode/ppc.h \ diff --git a/opcodes/configure b/opcodes/configure index 71cff129f6..7ac8e4b363 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -32,8 +32,6 @@ ac_help="$ac_help --disable-nls do not use Native Language Support" ac_help="$ac_help --with-included-gettext use the GNU gettext library included here" -ac_help="$ac_help - --enable-cgen-maint[=dir] build cgen generated files" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -51,6 +49,7 @@ program_suffix=NONE program_transform_name=s,x,x, silent= site= +sitefile= srcdir= target=NONE verbose= @@ -165,6 +164,7 @@ Configuration: --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages + --site-file=FILE use FILE as the site file --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX @@ -335,6 +335,11 @@ EOF -site=* | --site=* | --sit=*) site="$ac_optarg" ;; + -site-file | --site-file | --site-fil | --site-fi | --site-f) + ac_prev=sitefile ;; + -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) + sitefile="$ac_optarg" ;; + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) @@ -500,12 +505,16 @@ fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +if test -z "$sitefile"; then + if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi fi +else + CONFIG_SITE="$sitefile" fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then @@ -592,7 +601,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:596: checking host system type" >&5 +echo "configure:605: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -613,7 +622,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:617: checking target system type" >&5 +echo "configure:626: checking target system type" >&5 target_alias=$target case "$target_alias" in @@ -631,7 +640,7 @@ target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$target" 1>&6 echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:635: checking build system type" >&5 +echo "configure:644: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -656,7 +665,7 @@ test "$host_alias" != "$target_alias" && # 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:660: checking for $ac_word" >&5 +echo "configure:669: 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 @@ -686,7 +695,7 @@ if test -z "$CC"; then # 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:690: checking for $ac_word" >&5 +echo "configure:699: 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 @@ -737,7 +746,7 @@ fi # 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:741: checking for $ac_word" >&5 +echo "configure:750: 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 @@ -769,7 +778,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:782: 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. @@ -780,12 +789,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 784 "configure" +#line 793 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:798: \"$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 @@ -811,12 +820,12 @@ if test $ac_cv_prog_cc_works = no; then { 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:815: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:824: 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:820: checking whether we are using GNU C" >&5 +echo "configure:829: 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 @@ -825,7 +834,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$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:838: \"$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 @@ -844,7 +853,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:848: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:857: 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 @@ -876,7 +885,7 @@ else fi echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 -echo "configure:880: checking for POSIXized ISC" >&5 +echo "configure:889: 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 @@ -914,7 +923,7 @@ BFD_VERSION=`grep INIT_AUTOMAKE ${srcdir}/../bfd/configure.in | sed -n -e 's/[ # 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:918: checking for a BSD compatible install" >&5 +echo "configure:927: 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 @@ -967,7 +976,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:971: checking whether build environment is sane" >&5 +echo "configure:980: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile @@ -1024,7 +1033,7 @@ test "$program_suffix" != NONE && 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:1028: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:1037: 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 @@ -1070,7 +1079,7 @@ EOF missing_dir=`cd $ac_aux_dir && pwd` echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 -echo "configure:1074: checking for working aclocal" >&5 +echo "configure:1083: 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. @@ -1083,7 +1092,7 @@ else fi echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:1087: checking for working autoconf" >&5 +echo "configure:1096: 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. @@ -1096,7 +1105,7 @@ else fi echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:1100: checking for working automake" >&5 +echo "configure:1109: 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. @@ -1109,7 +1118,7 @@ else fi echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:1113: checking for working autoheader" >&5 +echo "configure:1122: 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. @@ -1122,7 +1131,7 @@ else fi echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:1126: checking for working makeinfo" >&5 +echo "configure:1135: 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. @@ -1145,7 +1154,7 @@ fi # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1149: checking for $ac_word" >&5 +echo "configure:1158: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1177,7 +1186,7 @@ fi # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1181: checking for $ac_word" >&5 +echo "configure:1190: 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 @@ -1209,7 +1218,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1213: checking for $ac_word" >&5 +echo "configure:1222: 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 @@ -1315,7 +1324,7 @@ fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1319: checking for $ac_word" >&5 +echo "configure:1328: 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 @@ -1354,7 +1363,7 @@ ac_prog=ld if test "$ac_cv_prog_gcc" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 -echo "configure:1358: checking for ld used by GCC" >&5 +echo "configure:1367: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. @@ -1378,10 +1387,10 @@ echo "configure:1358: checking for ld used by GCC" >&5 esac elif test "$with_gnu_ld" = yes; then echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 -echo "configure:1382: checking for GNU ld" >&5 +echo "configure:1391: checking for GNU ld" >&5 else echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 -echo "configure:1385: checking for non-GNU ld" >&5 +echo "configure:1394: checking for non-GNU ld" >&5 fi if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1417,7 +1426,7 @@ fi test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 -echo "configure:1421: checking if the linker ($LD) is GNU ld" >&5 +echo "configure:1430: checking if the linker ($LD) is GNU ld" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1433,7 +1442,7 @@ echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 -echo "configure:1437: checking for BSD-compatible nm" >&5 +echo "configure:1446: checking for BSD-compatible nm" >&5 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1471,7 +1480,7 @@ echo "$ac_t""$NM" 1>&6 # Check for command to grab the raw symbol name followed by C symbol from nm. echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 -echo "configure:1475: checking command to parse $NM output" >&5 +echo "configure:1484: checking command to parse $NM output" >&5 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1534,11 +1543,11 @@ void nm_test_func(){} int main(){nm_test_var='a';nm_test_func;return 0;} EOF - if { (eval echo configure:1538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:1547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then # Now try to grab the symbols. ac_nlist=conftest.nm - if { (eval echo configure:1542: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then + if { (eval echo configure:1551: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then # Try sorting and uniquifying the output. if sort "$ac_nlist" | uniq > "$ac_nlist"T; then @@ -1590,7 +1599,7 @@ EOF ac_save_CFLAGS="$CFLAGS" LIBS="conftestm.$ac_objext" CFLAGS="$CFLAGS$no_builtin_flag" - if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_pipe_works=yes else echo "configure: failed program was:" >&5 @@ -1636,7 +1645,7 @@ fi echo "$ac_t""$ac_result" 1>&6 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 -echo "configure:1640: checking for _ prefix in compiled symbols" >&5 +echo "configure:1649: checking for _ prefix in compiled symbols" >&5 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1645,10 +1654,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then # Now try to grab the symbols. ac_nlist=conftest.nm - if { (eval echo configure:1652: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then + if { (eval echo configure:1661: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then # See whether the symbols have a leading underscore. if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then ac_cv_sys_symbol_underscore=yes @@ -1674,7 +1683,7 @@ echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:1678: checking whether ln -s works" >&5 +echo "configure:1687: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1710,8 +1719,8 @@ test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" case "$host" in *-*-irix6*) # Find out which ABI we are using. - echo '#line 1714 "configure"' > conftest.$ac_ext - if { (eval echo configure:1715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + echo '#line 1723 "configure"' > conftest.$ac_ext + if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) LD="${LD-ld} -32" @@ -1732,19 +1741,19 @@ case "$host" in SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 -echo "configure:1736: checking whether the C compiler needs -belf" >&5 +echo "configure:1745: checking whether the C compiler needs -belf" >&5 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else @@ -1767,7 +1776,7 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. set dummy ${ac_tool_prefix}dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1771: checking for $ac_word" >&5 +echo "configure:1780: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1799,7 +1808,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "dlltool", so it can be a program name with args. set dummy dlltool; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1803: checking for $ac_word" >&5 +echo "configure:1812: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1834,7 +1843,7 @@ fi # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. set dummy ${ac_tool_prefix}as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1838: checking for $ac_word" >&5 +echo "configure:1847: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1866,7 +1875,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "as", so it can be a program name with args. set dummy as; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1870: checking for $ac_word" >&5 +echo "configure:1879: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2045,7 +2054,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x," echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:2049: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:2058: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" @@ -2068,12 +2077,12 @@ fi echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 -echo "configure:2072: checking for Cygwin environment" >&5 +echo "configure:2081: checking for Cygwin environment" >&5 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yes else @@ -2101,19 +2110,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6 CYGWIN= test "$ac_cv_cygwin" = yes && CYGWIN=yes echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 -echo "configure:2105: checking for mingw32 environment" >&5 +echo "configure:2114: checking for mingw32 environment" >&5 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yes else @@ -2132,7 +2141,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:2136: checking for executable suffix" >&5 +echo "configure:2145: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2142,7 +2151,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj | *.ilk | *.pdb) ;; @@ -2168,7 +2177,7 @@ ac_exeext=$EXEEXT # 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:2172: checking for $ac_word" >&5 +echo "configure:2181: 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 @@ -2198,7 +2207,7 @@ if test -z "$CC"; then # 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:2202: checking for $ac_word" >&5 +echo "configure:2211: 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 @@ -2249,7 +2258,7 @@ fi # 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:2253: checking for $ac_word" >&5 +echo "configure:2262: 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 @@ -2281,7 +2290,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:2294: 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. @@ -2292,12 +2301,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 2296 "configure" +#line 2305 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2310: \"$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 @@ -2323,12 +2332,12 @@ if test $ac_cv_prog_cc_works = no; then { 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:2327: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2336: 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:2332: checking whether we are using GNU C" >&5 +echo "configure:2341: 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 @@ -2337,7 +2346,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2341: \"$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:2350: \"$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 @@ -2356,7 +2365,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:2360: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:2369: 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 @@ -2390,7 +2399,7 @@ fi ALL_LINGUAS= echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2394: checking how to run the C preprocessor" >&5 +echo "configure:2403: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -2405,13 +2414,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2424: \"$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 : @@ -2422,13 +2431,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2441: \"$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 : @@ -2439,13 +2448,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2458: \"$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 : @@ -2470,12 +2479,12 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:2474: checking for ANSI C header files" >&5 +echo "configure:2483: 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 < #include @@ -2483,7 +2492,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2496: \"$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* @@ -2500,7 +2509,7 @@ 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 @@ -2518,7 +2527,7 @@ 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 @@ -2539,7 +2548,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -2550,7 +2559,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2574,12 +2583,12 @@ EOF fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:2578: checking for working const" >&5 +echo "configure:2587: 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 <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -2649,21 +2658,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:2653: checking for inline" >&5 +echo "configure:2662: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -2689,12 +2698,12 @@ EOF esac echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:2693: checking for off_t" >&5 +echo "configure:2702: checking for off_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2722,12 +2731,12 @@ EOF fi echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:2726: checking for size_t" >&5 +echo "configure:2735: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -2757,19 +2766,19 @@ fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:2761: checking for working alloca.h" >&5 +echo "configure:2770: checking for working alloca.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -2790,12 +2799,12 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:2794: checking for alloca" >&5 +echo "configure:2803: checking for alloca" >&5 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -2855,12 +2864,12 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:2859: checking whether alloca needs Cray hooks" >&5 +echo "configure:2868: checking whether alloca needs Cray hooks" >&5 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2889: checking for $ac_func" >&5 +echo "configure:2898: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2940,7 +2949,7 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:2944: checking stack direction for C alloca" >&5 +echo "configure:2953: checking stack direction for C alloca" >&5 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2948,7 +2957,7 @@ else ac_cv_c_stack_direction=0 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_c_stack_direction=1 else @@ -2992,17 +3001,17 @@ for ac_hdr in unistd.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2996: checking for $ac_hdr" >&5 +echo "configure:3005: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3015: \"$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* @@ -3031,12 +3040,12 @@ done for ac_func in getpagesize do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3035: checking for $ac_func" >&5 +echo "configure:3044: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3084,7 +3093,7 @@ fi done echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:3088: checking for working mmap" >&5 +echo "configure:3097: checking for working mmap" >&5 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3092,7 +3101,7 @@ else ac_cv_func_mmap_fixed_mapped=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_mmap_fixed_mapped=yes else @@ -3260,17 +3269,17 @@ unistd.h values.h sys/param.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3264: checking for $ac_hdr" >&5 +echo "configure:3273: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3283: \"$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* @@ -3300,12 +3309,12 @@ done __argz_count __argz_stringify __argz_next do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3304: checking for $ac_func" >&5 +echo "configure:3313: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3357,12 +3366,12 @@ done for ac_func in stpcpy do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3361: checking for $ac_func" >&5 +echo "configure:3370: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3419,19 +3428,19 @@ EOF if test $ac_cv_header_locale_h = yes; then echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 -echo "configure:3423: checking for LC_MESSAGES" >&5 +echo "configure:3432: checking for LC_MESSAGES" >&5 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return LC_MESSAGES ; return 0; } EOF -if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* am_cv_val_LC_MESSAGES=yes else @@ -3452,7 +3461,7 @@ EOF fi fi echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 -echo "configure:3456: checking whether NLS is requested" >&5 +echo "configure:3465: checking whether NLS is requested" >&5 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then enableval="$enable_nls" @@ -3472,7 +3481,7 @@ fi EOF echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 -echo "configure:3476: checking whether included gettext is requested" >&5 +echo "configure:3485: checking whether included gettext is requested" >&5 # Check whether --with-included-gettext or --without-included-gettext was given. if test "${with_included_gettext+set}" = set; then withval="$with_included_gettext" @@ -3491,17 +3500,17 @@ fi ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 -echo "configure:3495: checking for libintl.h" >&5 +echo "configure:3504: checking for libintl.h" >&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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3514: \"$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* @@ -3518,19 +3527,19 @@ fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 -echo "configure:3522: checking for gettext in libc" >&5 +echo "configure:3531: checking for gettext in libc" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return (int) gettext ("") ; return 0; } EOF -if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libc=yes else @@ -3546,7 +3555,7 @@ echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 if test "$gt_cv_func_gettext_libc" != "yes"; then echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 -echo "configure:3550: checking for bindtextdomain in -lintl" >&5 +echo "configure:3559: checking for bindtextdomain in -lintl" >&5 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3554,7 +3563,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3578: \"$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 @@ -3581,19 +3590,19 @@ fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 -echo "configure:3585: checking for gettext in libintl" >&5 +echo "configure:3594: checking for gettext in libintl" >&5 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* gt_cv_func_gettext_libintl=yes else @@ -3621,7 +3630,7 @@ EOF # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3625: checking for $ac_word" >&5 +echo "configure:3634: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3655,12 +3664,12 @@ fi for ac_func in dcgettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3659: checking for $ac_func" >&5 +echo "configure:3668: 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 <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3710,7 +3719,7 @@ done # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3714: checking for $ac_word" >&5 +echo "configure:3723: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3746,7 +3755,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3750: checking for $ac_word" >&5 +echo "configure:3759: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3778,7 +3787,7 @@ else fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* CATOBJEXT=.gmo DATADIRNAME=share @@ -3818,7 +3827,7 @@ fi # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3822: checking for $ac_word" >&5 +echo "configure:3831: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3852,7 +3861,7 @@ fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3856: checking for $ac_word" >&5 +echo "configure:3865: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3888,7 +3897,7 @@ fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3892: checking for $ac_word" >&5 +echo "configure:3901: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3978,7 +3987,7 @@ fi LINGUAS= else echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 -echo "configure:3982: checking for catalogs to be installed" >&5 +echo "configure:3991: checking for catalogs to be installed" >&5 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in @@ -4006,17 +4015,17 @@ echo "configure:3982: checking for catalogs to be installed" >&5 if test "$CATOBJEXT" = ".cat"; then ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 -echo "configure:4010: checking for linux/version.h" >&5 +echo "configure:4019: checking for linux/version.h" >&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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4029: \"$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* @@ -4093,7 +4102,7 @@ fi # 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:4097: checking for a BSD compatible install" >&5 +echo "configure:4106: 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 @@ -4150,17 +4159,17 @@ for ac_hdr in string.h strings.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:4154: checking for $ac_hdr" >&5 +echo "configure:4163: 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 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4173: \"$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* @@ -4271,6 +4280,7 @@ if test x${all_targets} = xfalse ; then bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; + bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; bfd_pyramid_arch) ;; bfd_romp_arch) ;; @@ -4523,10 +4533,6 @@ s%@GT_YES@%$GT_YES%g s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g s%@l@%$l%g s%@HDEFINES@%$HDEFINES%g -s%@CGEN_MAINT_TRUE@%$CGEN_MAINT_TRUE%g -s%@CGEN_MAINT_FALSE@%$CGEN_MAINT_FALSE%g -s%@cgendir@%$cgendir%g -s%@cgen@%$cgen%g s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g s%@WIN32LIBADD@%$WIN32LIBADD%g s%@archdefs@%$archdefs%g diff --git a/opcodes/configure.in b/opcodes/configure.in index c2785804b2..b8d84a5aea 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -151,6 +151,7 @@ if test x${all_targets} = xfalse ; then bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; + bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; bfd_pyramid_arch) ;; bfd_romp_arch) ;; diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index da6d5d5712..74947f0b89 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -39,6 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define ARCH_mn10200 #define ARCH_mn10300 #define ARCH_ns32k +#define ARCH_pj #define ARCH_powerpc #define ARCH_rs6000 #define ARCH_sh @@ -181,6 +182,11 @@ disassembler (abfd) disassemble = print_insn_mn10300; break; #endif +#ifdef ARCH_pj + case bfd_arch_pj: + disassemble = print_insn_pj; + break; +#endif #ifdef ARCH_powerpc case bfd_arch_powerpc: if (bfd_big_endian (abfd)) diff --git a/opcodes/pj-dis.c b/opcodes/pj-dis.c new file mode 100644 index 0000000000..c098295ba7 --- /dev/null +++ b/opcodes/pj-dis.c @@ -0,0 +1,175 @@ +/* pj-dis.c -- Disassemble picoJava instructions. + Copyright (C) 1999 Free Software Foundation, Inc. + Contributed by Steve Chamberlain, of Transmeta (sac@pobox.com). + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + + +#include +#include "opcode/pj.h" +#include "dis-asm.h" + +extern const pj_opc_info_t pj_opc_info[512]; + +static int get_int (memaddr, iptr, info) + bfd_vma memaddr; + int *iptr; + struct disassemble_info *info; +{ + unsigned char ival[4]; + + int status = info->read_memory_func (memaddr, ival, 4, info); + + *iptr = (ival[0] << 24) + | (ival[1] << 16) + | (ival[2] << 8) + | (ival[3] << 0) ; + + return status; +} + +int +print_insn_pj (addr, info) + bfd_vma addr; + struct disassemble_info *info; +{ + fprintf_ftype fprintf_fn = info->fprintf_func; + void *stream = info->stream; + unsigned char opcode; + int status; + + if ((status = info->read_memory_func (addr, &opcode, 1, info))) + goto fail; + + if (opcode == 0xff) + { + unsigned char byte_2; + if ((status = info->read_memory_func (addr + 1, &byte_2, 1, info))) + goto fail; + fprintf_fn (stream, "%s\t", pj_opc_info[opcode + byte_2].name); + return 2; + } + else + { + char *sep = "\t"; + int insn_start = addr; + const pj_opc_info_t *op = &pj_opc_info[opcode]; + int a; + addr++; + fprintf_fn (stream, "%s", op->name); + + /* The tableswitch instruction is followed by the default + address, low value, high value and the destinations. */ + + if (strcmp (op->name, "tableswitch") == 0) + { + int lowval; + int highval; + int val; + + addr = (addr + 3) & ~3; + if ((status = get_int (addr, &val, info))) + goto fail; + + fprintf_fn (stream," default: "); + (*info->print_address_func) (val + insn_start, info); + addr += 4; + + if ((status = get_int (addr, &lowval, info))) + goto fail; + addr += 4; + + if ((status = get_int (addr, &highval, info))) + goto fail; + addr += 4; + + while (lowval <= highval) { + if ((status = get_int (addr, &val, info))) + goto fail; + fprintf_fn (stream," %d:[", lowval); + (*info->print_address_func) (val + insn_start, info); + fprintf_fn (stream," ]"); + addr += 4; + lowval++; + } + return addr - insn_start; + } + + /* The lookupswitch instruction is followed by the default + address, element count and pairs of values and + addresses. */ + + if (strcmp (op->name, "lookupswitch") == 0) + { + int count; + int val; + + addr = (addr + 3) & ~3; + if ((status = get_int (addr, &val, info))) + goto fail; + addr += 4; + + fprintf_fn (stream," default: "); + (*info->print_address_func) (val + insn_start, info); + + if ((status = get_int (addr, &count, info))) + goto fail; + addr += 4; + + while (count--) { + if ((status = get_int (addr, &val, info))) + goto fail; + addr += 4; + fprintf_fn (stream," %d:[", val); + + if ((status = get_int (addr, &val, info))) + goto fail; + addr += 4; + + (*info->print_address_func) (val + insn_start, info); + fprintf_fn (stream," ]"); + } + return addr - insn_start; + } + for (a = 0; op->arg[a]; a++) + { + unsigned char data[4]; + int val = 0; + int i; + int size = ASIZE (op->arg[a]); + + if ((status = info->read_memory_func (addr, data, size, info))) + goto fail; + + val = (UNS (op->arg[0]) || ((data[0] & 0x80) == 0)) ? 0 : -1; + + for (i = 0; i < size; i++) + val = (val << 8) | (data[i] & 0xff); + + if (PCREL (op->arg[a])) + (*info->print_address_func) (val + insn_start, info); + else + fprintf_fn (stream, "%s%d", sep, val); + + sep = ","; + addr += size; + } + return op->len; + } + + fail: + info->memory_error_func (status, addr, info); + return -1; +} diff --git a/opcodes/pj-opc.c b/opcodes/pj-opc.c new file mode 100644 index 0000000000..9f7e38e973 --- /dev/null +++ b/opcodes/pj-opc.c @@ -0,0 +1,536 @@ +/* pj-opc.c -- Definitions for picoJava opcodes. + Copyright (C) 1999 Free Software Foundation, Inc. + Contributed by Steve Chamberlain of Transmeta (sac@pobox.com). + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + + +#include "ansidecl.h" +#include "opcode/pj.h" + +const pj_opc_info_t pj_opc_info[512] = +{ +{ 0x00, -1, 1, {O_N, O_N}, "nop"}, +{ 0x01, -1, 1, {O_N, O_N}, "aconst_null"}, +{ 0x02, -1, 1, {O_N, O_N}, "iconst_m1"}, +{ 0x03, -1, 1, {O_N, O_N}, "iconst_0"}, +{ 0x04, -1, 1, {O_N, O_N}, "iconst_1"}, +{ 0x05, -1, 1, {O_N, O_N}, "iconst_2"}, +{ 0x06, -1, 1, {O_N, O_N}, "iconst_3"}, +{ 0x07, -1, 1, {O_N, O_N}, "iconst_4"}, +{ 0x08, -1, 1, {O_N, O_N}, "iconst_5"}, +{ 0x09, -1, 1, {O_N, O_N}, "lconst_0"}, +{ 0x0a, -1, 1, {O_N, O_N}, "lconst_1"}, +{ 0x0b, -1, 1, {O_N, O_N}, "fconst_0"}, +{ 0x0c, -1, 1, {O_N, O_N}, "fconst_1"}, +{ 0x0d, -1, 1, {O_N, O_N}, "fconst_2"}, +{ 0x0e, -1, 1, {O_N, O_N}, "dconst_0"}, +{ 0x0f, -1, 1, {O_N, O_N}, "dconst_1"}, +{ 0x10, -1, 2, {O_8, O_N}, "bipush"}, +{ 0x11, -1, 3, {O_16, O_N}, "sipush"}, +{ 0x12, -1, 2, {O_N, O_N}, "ldc"}, +{ 0x13, -1, 3, {O_N, O_N}, "ldc_w"}, +{ 0x14, -1, 3, {O_N, O_N}, "ldc2_w"}, +{ 0x15, -1, 2, {O_U8, O_N}, "iload"}, +{ 0x16, -1, 2, {O_U8, O_N}, "lload"}, +{ 0x17, -1, 2, {O_U8, O_N}, "fload"}, +{ 0x18, -1, 2, {O_U8, O_N}, "dload"}, +{ 0x19, -1, 2, {O_U8, O_N}, "aload"}, +{ 0x1a, -1, 1, {O_N, O_N}, "iload_0"}, +{ 0x1b, -1, 1, {O_N, O_N}, "iload_1"}, +{ 0x1c, -1, 1, {O_N, O_N}, "iload_2"}, +{ 0x1d, -1, 1, {O_N, O_N}, "iload_3"}, +{ 0x1e, -1, 1, {O_N, O_N}, "lload_0"}, +{ 0x1f, -1, 1, {O_N, O_N}, "lload_1"}, +{ 0x20, -1, 1, {O_N, O_N}, "lload_2"}, +{ 0x21, -1, 1, {O_N, O_N}, "lload_3"}, +{ 0x22, -1, 1, {O_N, O_N}, "fload_0"}, +{ 0x23, -1, 1, {O_N, O_N}, "fload_1"}, +{ 0x24, -1, 1, {O_N, O_N}, "fload_2"}, +{ 0x25, -1, 1, {O_N, O_N}, "fload_3"}, +{ 0x26, -1, 1, {O_N, O_N}, "dload_0"}, +{ 0x27, -1, 1, {O_N, O_N}, "dload_1"}, +{ 0x28, -1, 1, {O_N, O_N}, "dload_2"}, +{ 0x29, -1, 1, {O_N, O_N}, "dload_3"}, +{ 0x2a, -1, 1, {O_N, O_N}, "aload_0"}, +{ 0x2b, -1, 1, {O_N, O_N}, "aload_1"}, +{ 0x2c, -1, 1, {O_N, O_N}, "aload_2"}, +{ 0x2d, -1, 1, {O_N, O_N}, "aload_3"}, +{ 0x2e, -1, 1, {O_N, O_N}, "iaload"}, +{ 0x2f, -1, 1, {O_N, O_N}, "laload"}, +{ 0x30, -1, 1, {O_N, O_N}, "faload"}, +{ 0x31, -1, 1, {O_N, O_N}, "daload"}, +{ 0x32, -1, 1, {O_N, O_N}, "aaload"}, +{ 0x33, -1, 1, {O_N, O_N}, "baload"}, +{ 0x34, -1, 1, {O_N, O_N}, "caload"}, +{ 0x35, -1, 1, {O_N, O_N}, "saload"}, +{ 0x36, -1, 2, {O_U8, O_N}, "istore"}, +{ 0x37, -1, 2, {O_U8, O_N}, "lstore"}, +{ 0x38, -1, 2, {O_U8, O_N}, "fstore"}, +{ 0x39, -1, 2, {O_U8, O_N}, "dstore"}, +{ 0x3a, -1, 2, {O_U8, O_N}, "astore"}, +{ 0x3b, -1, 1, {O_N, O_N}, "istore_0"}, +{ 0x3c, -1, 1, {O_N, O_N}, "istore_1"}, +{ 0x3d, -1, 1, {O_N, O_N}, "istore_2"}, +{ 0x3e, -1, 1, {O_N, O_N}, "istore_3"}, +{ 0x3f, -1, 1, {O_N, O_N}, "lstore_0"}, +{ 0x40, -1, 1, {O_N, O_N}, "lstore_1"}, +{ 0x41, -1, 1, {O_N, O_N}, "lstore_2"}, +{ 0x42, -1, 1, {O_N, O_N}, "lstore_3"}, +{ 0x43, -1, 1, {O_N, O_N}, "fstore_0"}, +{ 0x44, -1, 1, {O_N, O_N}, "fstore_1"}, +{ 0x45, -1, 1, {O_N, O_N}, "fstore_2"}, +{ 0x46, -1, 1, {O_N, O_N}, "fstore_3"}, +{ 0x47, -1, 1, {O_N, O_N}, "dstore_0"}, +{ 0x48, -1, 1, {O_N, O_N}, "dstore_1"}, +{ 0x49, -1, 1, {O_N, O_N}, "dstore_2"}, +{ 0x4a, -1, 1, {O_N, O_N}, "dstore_3"}, +{ 0x4b, -1, 1, {O_N, O_N}, "astore_0"}, +{ 0x4c, -1, 1, {O_N, O_N}, "astore_1"}, +{ 0x4d, -1, 1, {O_N, O_N}, "astore_2"}, +{ 0x4e, -1, 1, {O_N, O_N}, "astore_3"}, +{ 0x4f, -1, 1, {O_N, O_N}, "iastore"}, +{ 0x50, -1, 1, {O_N, O_N}, "lastore"}, +{ 0x51, -1, 1, {O_N, O_N}, "fastore"}, +{ 0x52, -1, 1, {O_N, O_N}, "dastore"}, +{ 0x53, -1, 1, {O_N, O_N}, "aastore"}, +{ 0x54, -1, 1, {O_N, O_N}, "bastore"}, +{ 0x55, -1, 1, {O_N, O_N}, "castore"}, +{ 0x56, -1, 1, {O_N, O_N}, "sastore"}, +{ 0x57, -1, 1, {O_N, O_N}, "pop"}, +{ 0x58, -1, 1, {O_N, O_N}, "pop2"}, +{ 0x59, -1, 1, {O_N, O_N}, "dup"}, +{ 0x5a, -1, 1, {O_N, O_N}, "dup_x1"}, +{ 0x5b, -1, 1, {O_N, O_N}, "dup_x2"}, +{ 0x5c, -1, 1, {O_N, O_N}, "dup2"}, +{ 0x5d, -1, 1, {O_N, O_N}, "dup2_x1"}, +{ 0x5e, -1, 1, {O_N, O_N}, "dup2_x2"}, +{ 0x5f, -1, 1, {O_N, O_N}, "swap"}, +{ 0x60, -1, 1, {O_N, O_N}, "iadd"}, +{ 0x61, -1, 1, {O_N, O_N}, "ladd"}, +{ 0x62, -1, 1, {O_N, O_N}, "fadd"}, +{ 0x63, -1, 1, {O_N, O_N}, "dadd"}, +{ 0x64, -1, 1, {O_N, O_N}, "isub"}, +{ 0x65, -1, 1, {O_N, O_N}, "lsub"}, +{ 0x66, -1, 1, {O_N, O_N}, "fsub"}, +{ 0x67, -1, 1, {O_N, O_N}, "dsub"}, +{ 0x68, -1, 1, {O_N, O_N}, "imul"}, +{ 0x69, -1, 1, {O_N, O_N}, "lmul"}, +{ 0x6a, -1, 1, {O_N, O_N}, "fmul"}, +{ 0x6b, -1, 1, {O_N, O_N}, "dmul"}, +{ 0x6c, -1, 1, {O_N, O_N}, "idiv"}, +{ 0x6d, -1, 1, {O_N, O_N}, "ldiv"}, +{ 0x6e, -1, 1, {O_N, O_N}, "fdiv"}, +{ 0x6f, -1, 1, {O_N, O_N}, "ddiv"}, +{ 0x70, -1, 1, {O_N, O_N}, "irem"}, +{ 0x71, -1, 1, {O_N, O_N}, "lrem"}, +{ 0x72, -1, 1, {O_N, O_N}, "frem"}, +{ 0x73, -1, 1, {O_N, O_N}, "drem"}, +{ 0x74, -1, 1, {O_N, O_N}, "ineg"}, +{ 0x75, -1, 1, {O_N, O_N}, "lneg"}, +{ 0x76, -1, 1, {O_N, O_N}, "fneg"}, +{ 0x77, -1, 1, {O_N, O_N}, "dneg"}, +{ 0x78, -1, 1, {O_N, O_N}, "ishl"}, +{ 0x79, -1, 1, {O_N, O_N}, "lshl"}, +{ 0x7a, -1, 1, {O_N, O_N}, "ishr"}, +{ 0x7b, -1, 1, {O_N, O_N}, "lshr"}, +{ 0x7c, -1, 1, {O_N, O_N}, "iushr"}, +{ 0x7d, -1, 1, {O_N, O_N}, "lushr"}, +{ 0x7e, -1, 1, {O_N, O_N}, "iand"}, +{ 0x7f, -1, 1, {O_N, O_N}, "land"}, +{ 0x80, -1, 1, {O_N, O_N}, "ior"}, +{ 0x81, -1, 1, {O_N, O_N}, "lor"}, +{ 0x82, -1, 1, {O_N, O_N}, "ixor"}, +{ 0x83, -1, 1, {O_N, O_N}, "lxor"}, +{ 0x84, -1, 3, {O_U8, O_8}, "iinc"}, +{ 0x85, -1, 1, {O_N, O_N}, "i2l"}, +{ 0x86, -1, 1, {O_N, O_N}, "i2f"}, +{ 0x87, -1, 1, {O_N, O_N}, "i2d"}, +{ 0x88, -1, 1, {O_N, O_N}, "l2i"}, +{ 0x89, -1, 1, {O_N, O_N}, "l2f"}, +{ 0x8a, -1, 1, {O_N, O_N}, "l2d"}, +{ 0x8b, -1, 1, {O_N, O_N}, "f2i"}, +{ 0x8c, -1, 1, {O_N, O_N}, "f2l"}, +{ 0x8d, -1, 1, {O_N, O_N}, "f2d"}, +{ 0x8e, -1, 1, {O_N, O_N}, "d2i"}, +{ 0x8f, -1, 1, {O_N, O_N}, "d2l"}, +{ 0x90, -1, 1, {O_N, O_N}, "d2f"}, +{ 0x91, -1, 1, {O_N, O_N}, "i2b"}, +{ 0x92, -1, 1, {O_N, O_N}, "i2c"}, +{ 0x93, -1, 1, {O_N, O_N}, "i2s"}, +{ 0x94, -1, 1, {O_N, O_N}, "lcmp"}, +{ 0x95, -1, 1, {O_N, O_N}, "fcmpl"}, +{ 0x96, -1, 1, {O_N, O_N}, "fcmpg"}, +{ 0x97, -1, 1, {O_N, O_N}, "dcmpl"}, +{ 0x98, -1, 1, {O_N, O_N}, "dcmpg"}, +{ 0x99, -1, 3, {O_R16, O_N}, "ifeq"}, +{ 0x9a, -1, 3, {O_R16, O_N}, "ifne"}, +{ 0x9b, -1, 3, {O_R16, O_N}, "iflt"}, +{ 0x9c, -1, 3, {O_R16, O_N}, "ifge"}, +{ 0x9d, -1, 3, {O_R16, O_N}, "ifgt"}, +{ 0x9e, -1, 3, {O_R16, O_N}, "ifle"}, +{ 0x9f, -1, 3, {O_R16, O_N}, "if_icmpeq"}, +{ 0xa0, -1, 3, {O_R16, O_N}, "if_icmpne"}, +{ 0xa1, -1, 3, {O_R16, O_N}, "if_icmplt"}, +{ 0xa2, -1, 3, {O_R16, O_N}, "if_icmpge"}, +{ 0xa3, -1, 3, {O_R16, O_N}, "if_icmpgt"}, +{ 0xa4, -1, 3, {O_R16, O_N}, "if_icmple"}, +{ 0xa5, -1, 3, {O_R16, O_N}, "if_acmpeq"}, +{ 0xa6, -1, 3, {O_R16, O_N}, "if_acmpne"}, +{ 0xa7, -1, 3, {O_R16, O_N}, "goto"}, +{ 0xa8, -1, 3, {O_N, O_N}, "jsr"}, +{ 0xa9, -1, 2, {O_N, O_N}, "ret"}, +{ 0xaa, -1, 1, {O_N, O_N}, "tableswitch"}, +{ 0xab, -1, 1, {O_N, O_N}, "lookupswitch"}, +{ 0xac, -1, 1, {O_N, O_N}, "ireturn"}, +{ 0xad, -1, 1, {O_N, O_N}, "lreturn"}, +{ 0xae, -1, 1, {O_N, O_N}, "freturn"}, +{ 0xaf, -1, 1, {O_N, O_N}, "dreturn"}, +{ 0xb0, -1, 1, {O_N, O_N}, "areturn"}, +{ 0xb1, -1, 1, {O_N, O_N}, "return"}, +{ 0xb2, -1, 3, {O_N, O_N}, "getstatic"}, +{ 0xb3, -1, 3, {O_N, O_N}, "putstatic"}, +{ 0xb4, -1, 3, {O_N, O_N}, "getfield"}, +{ 0xb5, -1, 3, {O_N, O_N}, "putfield"}, +{ 0xb6, -1, 3, {O_N, O_N}, "invokevirtual"}, +{ 0xb7, -1, 3, {O_N, O_N}, "invokespecial"}, +{ 0xb8, -1, 3, {O_N, O_N}, "invokestatic"}, +{ 0xb9, -1, 5, {O_N, O_N}, "invokeinterface"}, +{ 0xba, -1, 1, {O_N, O_N}, "bad_ba"}, +{ 0xbb, -1, 3, {O_N, O_N}, "new"}, +{ 0xbc, -1, 2, {O_N, O_N}, "newarray"}, +{ 0xbd, -1, 3, {O_N, O_N}, "anewarray"}, +{ 0xbe, -1, 1, {O_N, O_N}, "arraylength"}, +{ 0xbf, -1, 1, {O_N, O_N}, "athrow"}, +{ 0xc0, -1, 3, {O_N, O_N}, "checkcast"}, +{ 0xc1, -1, 3, {O_N, O_N}, "instanceof"}, +{ 0xc2, -1, 1, {O_N, O_N}, "monitorenter"}, +{ 0xc3, -1, 1, {O_N, O_N}, "monitorexit"}, +{ 0xc4, -1, 1, {O_N, O_N}, "wide"}, +{ 0xc5, -1, 4, {O_N, O_N}, "multianewarray"}, +{ 0xc6, -1, 3, {O_N, O_N}, "ifnull"}, +{ 0xc7, -1, 3, {O_N, O_N}, "ifnonnull"}, +{ 0xc8, -1, 5, {O_N, O_N}, "goto_w"}, +{ 0xc9, -1, 5, {O_N, O_N}, "jsr_w"}, +{ 0xca, -1, 1, {O_N, O_N}, "breakpoint"}, +{ 0xcb, -1, 1, {O_N, O_N}, "bytecode"}, +{ 0xcc, -1, 1, {O_N, O_N}, "try"}, +{ 0xcd, -1, 1, {O_N, O_N}, "endtry"}, +{ 0xce, -1, 1, {O_N, O_N}, "catch"}, +{ 0xcf, -1, 1, {O_N, O_N}, "var"}, +{ 0xd0, -1, 1, {O_N, O_N}, "endvar"}, +{ 0xd1, -1, 1, {O_N, O_N}, "bad_d1"}, +{ 0xd2, -1, 1, {O_N, O_N}, "bad_d2"}, +{ 0xd3, -1, 1, {O_N, O_N}, "bad_d3"}, +{ 0xd4, -1, 1, {O_N, O_N}, "bad_d4"}, +{ 0xd5, -1, 1, {O_N, O_N}, "bad_d5"}, +{ 0xd6, -1, 1, {O_N, O_N}, "bad_d6"}, +{ 0xd7, -1, 1, {O_N, O_N}, "bad_d7"}, +{ 0xd8, -1, 1, {O_N, O_N}, "bad_d8"}, +{ 0xd9, -1, 1, {O_N, O_N}, "bad_d9"}, +{ 0xda, -1, 1, {O_N, O_N}, "bad_da"}, +{ 0xdb, -1, 1, {O_N, O_N}, "bad_db"}, +{ 0xdc, -1, 1, {O_N, O_N}, "bad_dc"}, +{ 0xdd, -1, 1, {O_N, O_N}, "bad_dd"}, +{ 0xde, -1, 1, {O_N, O_N}, "bad_de"}, +{ 0xdf, -1, 1, {O_N, O_N}, "bad_df"}, +{ 0xe0, -1, 1, {O_N, O_N}, "bad_e0"}, +{ 0xe1, -1, 1, {O_N, O_N}, "bad_e1"}, +{ 0xe2, -1, 1, {O_N, O_N}, "bad_e2"}, +{ 0xe3, -1, 1, {O_N, O_N}, "bad_e3"}, +{ 0xe4, -1, 1, {O_N, O_N}, "bad_e4"}, +{ 0xe5, -1, 1, {O_N, O_N}, "bad_e5"}, +{ 0xe6, -1, 1, {O_N, O_N}, "bad_e6"}, +{ 0xe7, -1, 1, {O_N, O_N}, "bad_e7"}, +{ 0xe8, -1, 1, {O_N, O_N}, "bad_e8"}, +{ 0xe9, -1, 1, {O_N, O_N}, "bad_e9"}, +{ 0xea, -1, 1, {O_N, O_N}, "bad_ea"}, +{ 0xeb, -1, 1, {O_N, O_N}, "bad_eb"}, +{ 0xec, -1, 1, {O_N, O_N}, "bad_ec"}, +{ 0xed, -1, 3, {O_16, O_N}, "sethi"}, +{ 0xee, -1, 3, {O_U8, O_8}, "load_word_index"}, +{ 0xef, -1, 3, {O_U8, O_8}, "load_short_index"}, +{ 0xf0, -1, 3, {O_U8, O_8}, "load_char_index"}, +{ 0xf1, -1, 3, {O_U8, O_8}, "load_byte_index"}, +{ 0xf2, -1, 3, {O_U8, O_8}, "load_ubyte_index"}, +{ 0xf3, -1, 3, {O_U8, O_8}, "store_word_index"}, +{ 0xf4, -1, 3, {O_U8, O_8}, "na_store_word_index"}, +{ 0xf5, -1, 3, {O_U8, O_8}, "store_short_index"}, +{ 0xf6, -1, 3, {O_U8, O_8}, "store_byte_index"}, +{ 0xf7, -1, 1, {O_N, O_N}, "bad_f7"}, +{ 0xf8, -1, 1, {O_N, O_N}, "bad_f8"}, +{ 0xf9, -1, 1, {O_N, O_N}, "bad_f9"}, +{ 0xfa, -1, 1, {O_N, O_N}, "bad_fa"}, +{ 0xfb, -1, 1, {O_N, O_N}, "bad_fb"}, +{ 0xfc, -1, 1, {O_N, O_N}, "bad_fc"}, +{ 0xfd, -1, 1, {O_N, O_N}, "bad_fd"}, +{ 0xfe, -1, 1, {O_N, O_N}, "bad_fe"}, +{ 0xff, 0x00, 2, {O_N, O_N}, "load_ubyte"}, +{ 0xff, 0x01, 2, {O_N, O_N}, "load_byte"}, +{ 0xff, 0x02, 2, {O_N, O_N}, "load_char"}, +{ 0xff, 0x03, 2, {O_N, O_N}, "load_short"}, +{ 0xff, 0x04, 2, {O_N, O_N}, "load_word"}, +{ 0xff, 0x05, 2, {O_N, O_N}, "priv_ret_from_trap"}, +{ 0xff, 0x06, 2, {O_N, O_N}, "priv_read_dcache_tag"}, +{ 0xff, 0x07, 2, {O_N, O_N}, "priv_read_dcache_data"}, +{ 0xff, 0x08, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x09, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x0a, 2, {O_N, O_N}, "load_char_oe"}, +{ 0xff, 0x0b, 2, {O_N, O_N}, "load_short_oe"}, +{ 0xff, 0x0c, 2, {O_N, O_N}, "load_word_oe"}, +{ 0xff, 0x0d, 2, {O_N, O_N}, "return0"}, +{ 0xff, 0x0e, 2, {O_N, O_N}, "priv_read_icache_tag"}, +{ 0xff, 0x0f, 2, {O_N, O_N}, "priv_read_icache_data"}, +{ 0xff, 0x10, 2, {O_N, O_N}, "ncload_ubyte"}, +{ 0xff, 0x11, 2, {O_N, O_N}, "ncload_byte"}, +{ 0xff, 0x12, 2, {O_N, O_N}, "ncload_char"}, +{ 0xff, 0x13, 2, {O_N, O_N}, "ncload_short"}, +{ 0xff, 0x14, 2, {O_N, O_N}, "ncload_word"}, +{ 0xff, 0x15, 2, {O_N, O_N}, "iucmp"}, +{ 0xff, 0x16, 2, {O_N, O_N}, "priv_powerdown"}, +{ 0xff, 0x17, 2, {O_N, O_N}, "cache_invalidate"}, +{ 0xff, 0x18, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x19, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x1a, 2, {O_N, O_N}, "ncload_char_oe"}, +{ 0xff, 0x1b, 2, {O_N, O_N}, "ncload_short_oe"}, +{ 0xff, 0x1c, 2, {O_N, O_N}, "ncload_word_oe"}, +{ 0xff, 0x1d, 2, {O_N, O_N}, "return1"}, +{ 0xff, 0x1e, 2, {O_N, O_N}, "cache_flush"}, +{ 0xff, 0x1f, 2, {O_N, O_N}, "cache_index_flush"}, +{ 0xff, 0x20, 2, {O_N, O_N}, "store_byte"}, +{ 0xff, 0x21, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x22, 2, {O_N, O_N}, "store_short"}, +{ 0xff, 0x23, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x24, 2, {O_N, O_N}, "store_word"}, +{ 0xff, 0x25, 2, {O_N, O_N}, "soft_trap"}, +{ 0xff, 0x26, 2, {O_N, O_N}, "priv_write_dcache_tag"}, +{ 0xff, 0x27, 2, {O_N, O_N}, "priv_write_dcache_data"}, +{ 0xff, 0x28, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x29, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x2a, 2, {O_N, O_N}, "store_short_oe"}, +{ 0xff, 0x2b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x2c, 2, {O_N, O_N}, "store_word_oe"}, +{ 0xff, 0x2d, 2, {O_N, O_N}, "return2"}, +{ 0xff, 0x2e, 2, {O_N, O_N}, "priv_write_icache_tag"}, +{ 0xff, 0x2f, 2, {O_N, O_N}, "priv_write_icache_data"}, +{ 0xff, 0x30, 2, {O_N, O_N}, "ncstore_byte"}, +{ 0xff, 0x31, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x32, 2, {O_N, O_N}, "ncstore_short"}, +{ 0xff, 0x33, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x34, 2, {O_N, O_N}, "ncstore_word"}, +{ 0xff, 0x35, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x36, 2, {O_N, O_N}, "priv_reset"}, +{ 0xff, 0x37, 2, {O_N, O_N}, "get_current_class"}, +{ 0xff, 0x38, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x39, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x3a, 2, {O_N, O_N}, "ncstore_short_oe"}, +{ 0xff, 0x3b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x3c, 2, {O_N, O_N}, "ncstore_word_oe"}, +{ 0xff, 0x3d, 2, {O_N, O_N}, "call"}, +{ 0xff, 0x3e, 2, {O_N, O_N}, "zero_line"}, +{ 0xff, 0x3f, 2, {O_N, O_N}, "priv_update_optop"}, +{ 0xff, 0x40, 2, {O_N, O_N}, "read_pc"}, +{ 0xff, 0x41, 2, {O_N, O_N}, "read_vars"}, +{ 0xff, 0x42, 2, {O_N, O_N}, "read_frame"}, +{ 0xff, 0x43, 2, {O_N, O_N}, "read_optop"}, +{ 0xff, 0x44, 2, {O_N, O_N}, "priv_read_oplim"}, +{ 0xff, 0x45, 2, {O_N, O_N}, "read_const_pool"}, +{ 0xff, 0x46, 2, {O_N, O_N}, "priv_read_psr"}, +{ 0xff, 0x47, 2, {O_N, O_N}, "priv_read_trapbase"}, +{ 0xff, 0x48, 2, {O_N, O_N}, "priv_read_lockcount0"}, +{ 0xff, 0x49, 2, {O_N, O_N}, "priv_read_lockcount1"}, +{ 0xff, 0x4a, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x4b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x4c, 2, {O_N, O_N}, "priv_read_lockaddr0"}, +{ 0xff, 0x4d, 2, {O_N, O_N}, "priv_read_lockaddr1"}, +{ 0xff, 0x4e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x4f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x50, 2, {O_N, O_N}, "priv_read_userrange1"}, +{ 0xff, 0x51, 2, {O_N, O_N}, "priv_read_gc_config"}, +{ 0xff, 0x52, 2, {O_N, O_N}, "priv_read_brk1a"}, +{ 0xff, 0x53, 2, {O_N, O_N}, "priv_read_brk2a"}, +{ 0xff, 0x54, 2, {O_N, O_N}, "priv_read_brk12c"}, +{ 0xff, 0x55, 2, {O_N, O_N}, "priv_read_userrange2"}, +{ 0xff, 0x56, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x57, 2, {O_N, O_N}, "priv_read_versionid"}, +{ 0xff, 0x58, 2, {O_N, O_N}, "priv_read_hcr"}, +{ 0xff, 0x59, 2, {O_N, O_N}, "priv_read_sc_bottom"}, +{ 0xff, 0x5a, 2, {O_N, O_N}, "read_global0"}, +{ 0xff, 0x5b, 2, {O_N, O_N}, "read_global1"}, +{ 0xff, 0x5c, 2, {O_N, O_N}, "read_global2"}, +{ 0xff, 0x5d, 2, {O_N, O_N}, "read_global3"}, +{ 0xff, 0x5e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x5f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x60, 2, {O_N, O_N}, "write_pc"}, +{ 0xff, 0x61, 2, {O_N, O_N}, "write_vars"}, +{ 0xff, 0x62, 2, {O_N, O_N}, "write_frame"}, +{ 0xff, 0x63, 2, {O_N, O_N}, "write_optop"}, +{ 0xff, 0x64, 2, {O_N, O_N}, "priv_write_oplim"}, +{ 0xff, 0x65, 2, {O_N, O_N}, "write_const_pool"}, +{ 0xff, 0x66, 2, {O_N, O_N}, "priv_write_psr"}, +{ 0xff, 0x67, 2, {O_N, O_N}, "priv_write_trapbase"}, +{ 0xff, 0x68, 2, {O_N, O_N}, "priv_write_lockcount0"}, +{ 0xff, 0x69, 2, {O_N, O_N}, "priv_write_lockcount1"}, +{ 0xff, 0x6a, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x6b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x6c, 2, {O_N, O_N}, "priv_write_lockaddr0"}, +{ 0xff, 0x6d, 2, {O_N, O_N}, "priv_write_lockaddr1"}, +{ 0xff, 0x6e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x6f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x70, 2, {O_N, O_N}, "priv_write_userrange1"}, +{ 0xff, 0x71, 2, {O_N, O_N}, "priv_write_gc_config"}, +{ 0xff, 0x72, 2, {O_N, O_N}, "priv_write_brk1a"}, +{ 0xff, 0x73, 2, {O_N, O_N}, "priv_write_brk2a"}, +{ 0xff, 0x74, 2, {O_N, O_N}, "priv_write_brk12c"}, +{ 0xff, 0x75, 2, {O_N, O_N}, "priv_write_userrange2"}, +{ 0xff, 0x76, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x77, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x78, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x79, 2, {O_N, O_N}, "priv_write_sc_bottom"}, +{ 0xff, 0x7a, 2, {O_N, O_N}, "write_global0"}, +{ 0xff, 0x7b, 2, {O_N, O_N}, "write_global1"}, +{ 0xff, 0x7c, 2, {O_N, O_N}, "write_global2"}, +{ 0xff, 0x7d, 2, {O_N, O_N}, "write_global3"}, +{ 0xff, 0x7e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x7f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x80, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x81, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x82, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x83, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x84, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x85, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x86, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x87, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x88, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x89, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8a, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8c, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8d, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x8f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x90, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x91, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x92, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x93, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x94, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x95, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x96, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x97, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x98, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x99, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9a, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9b, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9c, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9d, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9e, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0x9f, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa0, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa1, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xa9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xaa, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xab, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xac, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xad, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xae, 2, {O_N, O_N}, "tm_putchar"}, +{ 0xff, 0xaf, 2, {O_N, O_N}, "tm_exit"}, +{ 0xff, 0xb0, 2, {O_N, O_N}, "tm_trap"}, +{ 0xff, 0xb1, 2, {O_N, O_N}, "tm_minfo"}, +{ 0xff, 0xb2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xb9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xba, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xbb, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xbc, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xbd, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xbe, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xbf, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc0, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc1, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xc9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xca, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xcb, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xcc, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xcd, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xce, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xcf, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd0, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd1, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xd9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xda, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xdb, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xdc, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xdd, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xde, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xdf, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe0, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe1, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xe9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xea, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xeb, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xec, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xed, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xee, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xef, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf0, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf1, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf2, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf3, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf4, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf5, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf6, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf7, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf8, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xf9, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xfa, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xfb, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xfc, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xfd, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xfe, 2, {O_N, O_N}, "bad"}, +{ 0xff, 0xff, 2, {O_N, O_N}, "bad"}, +}; -- 2.34.1