source:
rtems/contrib/crossrpms/patches/gdb-6.8-rtems4.8-20080429.diff
@
4cf3275
Last change on this file since 4cf3275 was 83ea84b6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 05/02/08 at 04:56:36 | |
---|---|
|
|
File size: 20.0 KB |
-
sim/common/aclocal.m4
diff -Naur gdb-6.8.orig/sim/common/aclocal.m4 gdb-6.8/sim/common/aclocal.m4
old new 18 18 # 19 19 # SIM_AC_OUTPUT 20 20 21 AC_DEFUN( SIM_AC_COMMON,21 AC_DEFUN([SIM_AC_COMMON], 22 22 [ 23 23 # autoconf.info says this should be called right after AC_INIT. 24 24 AC_CONFIG_HEADER(ifelse([$1],,config.h,[$1]):config.in) … … 245 245 dnl supported. 246 246 dnl ??? Until there is demonstrable value in doing something more complicated, 247 247 dnl let's not. 248 AC_DEFUN( SIM_AC_OPTION_ENVIRONMENT,248 AC_DEFUN([SIM_AC_OPTION_ENVIRONMENT], 249 249 [ 250 250 AC_ARG_ENABLE(sim-environment, 251 251 [ --enable-sim-environment=environment Specify mixed, user, virtual or operating environment.], … … 269 269 dnl Without this option all possible alignment restrictions are accommodated. 270 270 dnl arg[1] is hardwired target alignment 271 271 dnl arg[2] is default target alignment 272 AC_DEFUN( SIM_AC_OPTION_ALIGNMENT,272 AC_DEFUN([SIM_AC_OPTION_ALIGNMENT], 273 273 wire_alignment="[$1]" 274 274 default_alignment="[$2]" 275 275 [ … … 318 318 319 319 320 320 dnl Conditionally compile in assertion statements. 321 AC_DEFUN( SIM_AC_OPTION_ASSERT,321 AC_DEFUN([SIM_AC_OPTION_ASSERT], 322 322 [ 323 323 AC_ARG_ENABLE(sim-assert, 324 324 [ --enable-sim-assert Specify whether to perform random assertions.], … … 342 342 dnl arg[3] is the number of bits in an address 343 343 dnl arg[4] is the number of bits in an OpenFirmware cell. 344 344 dnl FIXME: this information should be obtained from bfd/archure 345 AC_DEFUN( SIM_AC_OPTION_BITSIZE,345 AC_DEFUN([SIM_AC_OPTION_BITSIZE], 346 346 wire_word_bitsize="[$1]" 347 347 wire_word_msb="[$2]" 348 348 wire_address_bitsize="[$3]" … … 408 408 dnl that support both big and little endian targets. 409 409 dnl arg[1] is hardwired target endianness. 410 410 dnl arg[2] is default target endianness. 411 AC_DEFUN( SIM_AC_OPTION_ENDIAN,411 AC_DEFUN([SIM_AC_OPTION_ENDIAN], 412 412 [ 413 413 wire_endian="[$1]" 414 414 default_endian="[$2]" … … 458 458 dnl --enable-sim-hostendian is for users of the simulator when 459 459 dnl they find that AC_C_BIGENDIAN does not function correctly 460 460 dnl (for instance in a canadian cross) 461 AC_DEFUN( SIM_AC_OPTION_HOSTENDIAN,461 AC_DEFUN([SIM_AC_OPTION_HOSTENDIAN], 462 462 [ 463 463 AC_ARG_ENABLE(sim-hostendian, 464 464 [ --enable-sim-hostendian=end Specify host byte endian orientation.], … … 490 490 dnl And optionally the bitsize of the floating point register. 491 491 dnl arg[1] specifies the presence (or absence) of floating point hardware 492 492 dnl arg[2] specifies the number of bits in a floating point register 493 AC_DEFUN( SIM_AC_OPTION_FLOAT,493 AC_DEFUN([SIM_AC_OPTION_FLOAT], 494 494 [ 495 495 default_sim_float="[$1]" 496 496 default_sim_float_bitsize="[$2]" … … 519 519 520 520 521 521 dnl The argument is the default cache size if none is specified. 522 AC_DEFUN( SIM_AC_OPTION_SCACHE,522 AC_DEFUN([SIM_AC_OPTION_SCACHE], 523 523 [ 524 524 default_sim_scache="ifelse([$1],,0,[$1])" 525 525 AC_ARG_ENABLE(sim-scache, … … 539 539 540 540 541 541 dnl The argument is the default model if none is specified. 542 AC_DEFUN( SIM_AC_OPTION_DEFAULT_MODEL,542 AC_DEFUN([SIM_AC_OPTION_DEFAULT_MODEL], 543 543 [ 544 544 default_sim_default_model="ifelse([$1],,0,[$1])" 545 545 AC_ARG_ENABLE(sim-default-model, … … 559 559 dnl arg[1] Enable sim-hw by default? ("yes" or "no") 560 560 dnl arg[2] is a space separated list of devices that override the defaults 561 561 dnl arg[3] is a space separated list of extra target specific devices. 562 AC_DEFUN( SIM_AC_OPTION_HARDWARE,562 AC_DEFUN([SIM_AC_OPTION_HARDWARE], 563 563 [ 564 564 if test x"[$1]" = x"yes"; then 565 565 sim_hw_p=yes … … 621 621 dnl performance by inlining functions. 622 622 dnl Guarantee that unconfigured simulators do not do any inlining 623 623 sim_inline="-DDEFAULT_INLINE=0" 624 AC_DEFUN( SIM_AC_OPTION_INLINE,624 AC_DEFUN([SIM_AC_OPTION_INLINE], 625 625 [ 626 626 default_sim_inline="ifelse([$1],,,-DDEFAULT_INLINE=[$1])" 627 627 AC_ARG_ENABLE(sim-inline, … … 666 666 AC_SUBST(sim_inline) 667 667 668 668 669 AC_DEFUN( SIM_AC_OPTION_PACKAGES,669 AC_DEFUN([SIM_AC_OPTION_PACKAGES], 670 670 [ 671 671 AC_ARG_ENABLE(sim-packages, 672 672 [ --enable-sim-packages=list Specify the packages to be included in the build.], … … 692 692 AC_SUBST(sim_packages) 693 693 694 694 695 AC_DEFUN( SIM_AC_OPTION_REGPARM,695 AC_DEFUN([SIM_AC_OPTION_REGPARM], 696 696 [ 697 697 AC_ARG_ENABLE(sim-regparm, 698 698 [ --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific.], … … 709 709 AC_SUBST(sim_regparm) 710 710 711 711 712 AC_DEFUN( SIM_AC_OPTION_RESERVED_BITS,712 AC_DEFUN([SIM_AC_OPTION_RESERVED_BITS], 713 713 [ 714 714 default_sim_reserved_bits="ifelse([$1],,1,[$1])" 715 715 AC_ARG_ENABLE(sim-reserved-bits, … … 726 726 AC_SUBST(sim_reserved_bits) 727 727 728 728 729 AC_DEFUN( SIM_AC_OPTION_SMP,729 AC_DEFUN([SIM_AC_OPTION_SMP], 730 730 [ 731 731 default_sim_smp="ifelse([$1],,5,[$1])" 732 732 AC_ARG_ENABLE(sim-smp, … … 746 746 AC_SUBST(sim_smp) 747 747 748 748 749 AC_DEFUN( SIM_AC_OPTION_STDCALL,749 AC_DEFUN([SIM_AC_OPTION_STDCALL], 750 750 [ 751 751 AC_ARG_ENABLE(sim-stdcall, 752 752 [ --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific.], … … 763 763 AC_SUBST(sim_stdcall) 764 764 765 765 766 AC_DEFUN( SIM_AC_OPTION_XOR_ENDIAN,766 AC_DEFUN([SIM_AC_OPTION_XOR_ENDIAN], 767 767 [ 768 768 default_sim_xor_endian="ifelse([$1],,8,[$1])" 769 769 AC_ARG_ENABLE(sim-xor-endian, … … 782 782 783 783 dnl --enable-build-warnings is for developers of the simulator. 784 784 dnl it enables extra GCC specific warnings. 785 AC_DEFUN( SIM_AC_OPTION_WARNINGS,785 AC_DEFUN([SIM_AC_OPTION_WARNINGS], 786 786 [ 787 787 # NOTE: Don't add -Wall or -Wunused, they both include 788 788 # -Wunused-parameter which reports bogus warnings. … … 866 866 dnl one afterwards. The two pieces of the common fragment are inserted into 867 867 dnl the target's fragment at the appropriate points. 868 868 869 AC_DEFUN( SIM_AC_OUTPUT,869 AC_DEFUN([SIM_AC_OUTPUT], 870 870 [ 871 871 AC_LINK_FILES($sim_link_files, $sim_link_links) 872 872 dnl Make @cgen_breaks@ non-null only if the sim uses CGEN. … … 895 895 sinclude(../../config/gettext-sister.m4) 896 896 897 897 dnl --enable-cgen-maint support 898 AC_DEFUN( SIM_AC_OPTION_CGEN_MAINT,898 AC_DEFUN([SIM_AC_OPTION_CGEN_MAINT], 899 899 [ 900 900 cgen_maint=no 901 901 dnl Default is to use one in build tree. -
sim/erc32/configure
diff -Naur gdb-6.8.orig/sim/erc32/configure gdb-6.8/sim/erc32/configure
old new 309 309 # include <unistd.h> 310 310 #endif" 311 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile TERMCAP READLINEcgen_breaks LIBOBJS LTLIBOBJS'312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile READLINE READLINE_DEPS READLINE_CFLAGS cgen_breaks LIBOBJS LTLIBOBJS' 313 313 ac_subst_files='' 314 314 315 315 # Initialize some variables set by options. … … 858 858 --enable-sim-trace=opts Enable tracing flags 859 859 --enable-sim-profile=opts Enable profiling flags 860 860 861 Optional Packages: 862 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 863 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 864 --with-system-readline use installed readline library 865 861 866 Some influential environment variables: 862 867 CC C compiler command 863 868 CFLAGS C compiler flags … … 4493 4498 done 4494 4499 4495 4500 4496 # In the Cygwin environment, we need some additional flags.4497 echo "$as_me:$LINENO: checking for cygwin" >&54498 echo $ECHO_N "checking for cygwin... $ECHO_C" >&64499 if test "${sim_cv_os_cygwin+set}" = set; then4500 echo $ECHO_N "(cached) $ECHO_C" >&64501 else4502 cat >conftest.$ac_ext <<_ACEOF4503 /* confdefs.h. */4504 _ACEOF4505 cat confdefs.h >>conftest.$ac_ext4506 cat >>conftest.$ac_ext <<_ACEOF4507 /* end confdefs.h. */4508 4501 4509 #ifdef __CYGWIN__ 4510 lose 4511 #endif 4512 _ACEOF 4513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4514 $EGREP "lose" >/dev/null 2>&1; then 4515 sim_cv_os_cygwin=yes 4516 else 4517 sim_cv_os_cygwin=no 4518 fi 4519 rm -f conftest* 4502 # Check whether --with-system-readline or --without-system-readline was given. 4503 if test "${with_system_readline+set}" = set; then 4504 withval="$with_system_readline" 4520 4505 4521 fi 4522 echo "$as_me:$LINENO: result: $sim_cv_os_cygwin" >&5 4523 echo "${ECHO_T}$sim_cv_os_cygwin" >&6 4506 fi; 4524 4507 4525 if test x$sim_cv_os_cygwin = xyes; then 4526 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32' 4527 else 4528 echo "$as_me:$LINENO: checking for main in -ltermcap" >&5 4529 echo $ECHO_N "checking for main in -ltermcap... $ECHO_C" >&6 4530 if test "${ac_cv_lib_termcap_main+set}" = set; then 4531 echo $ECHO_N "(cached) $ECHO_C" >&6 4532 else 4533 ac_check_lib_save_LIBS=$LIBS 4534 LIBS="-ltermcap $LIBS" 4535 cat >conftest.$ac_ext <<_ACEOF 4508 if test "$with_system_readline" = yes; then 4509 echo "$as_me:$LINENO: checking for readline" >&5 4510 echo $ECHO_N "checking for readline... $ECHO_C" >&6 4511 save_LIBS="$LIBS" 4512 LIBS="-lreadline $save_LIBS" 4513 cat >conftest.$ac_ext <<_ACEOF 4536 4514 /* confdefs.h. */ 4537 4515 _ACEOF 4538 4516 cat confdefs.h >>conftest.$ac_ext 4539 4517 cat >>conftest.$ac_ext <<_ACEOF 4540 4518 /* end confdefs.h. */ 4541 4519 4542 4520 /* Override any gcc2 internal prototype to avoid an error. */ 4521 #ifdef __cplusplus 4522 extern "C" 4523 #endif 4524 /* We use char because int might match the return type of a gcc2 4525 builtin and then its argument prototype would still apply. */ 4526 char add_history (); 4543 4527 int 4544 4528 main () 4545 4529 { 4546 main();4530 add_history (); 4547 4531 ; 4548 4532 return 0; 4549 4533 } … … 4570 4554 ac_status=$? 4571 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 4556 (exit $ac_status); }; }; then 4573 ac_cv_lib_termcap_main=yes4557 READLINE=-lreadline 4574 4558 else 4575 4559 echo "$as_me: failed program was:" >&5 4576 4560 sed 's/^/| /' conftest.$ac_ext >&5 4577 4561 4578 ac_cv_lib_termcap_main=no 4579 fi 4580 rm -f conftest.err conftest.$ac_objext \ 4581 conftest$ac_exeext conftest.$ac_ext 4582 LIBS=$ac_check_lib_save_LIBS 4583 fi 4584 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_main" >&5 4585 echo "${ECHO_T}$ac_cv_lib_termcap_main" >&6 4586 if test $ac_cv_lib_termcap_main = yes; then 4587 TERMCAP=-ltermcap 4588 else 4589 TERMCAP="" 4590 fi 4591 4592 fi 4593 4594 4595 # We prefer the in-tree readline. Top-level dependencies make sure 4596 # src/readline (if it's there) is configured before src/sim. 4597 if test -r ../../readline/Makefile; then 4598 READLINE=../../readline/libreadline.a 4599 else 4600 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 4601 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 4602 if test "${ac_cv_lib_readline_readline+set}" = set; then 4603 echo $ECHO_N "(cached) $ECHO_C" >&6 4604 else 4605 ac_check_lib_save_LIBS=$LIBS 4606 LIBS="-lreadline $TERMCAP $LIBS" 4607 cat >conftest.$ac_ext <<_ACEOF 4562 LIBS="-lreadline -lncurses $save_LIBS" 4563 cat >conftest.$ac_ext <<_ACEOF 4608 4564 /* confdefs.h. */ 4609 4565 _ACEOF 4610 4566 cat confdefs.h >>conftest.$ac_ext … … 4617 4573 #endif 4618 4574 /* We use char because int might match the return type of a gcc2 4619 4575 builtin and then its argument prototype would still apply. */ 4620 char readline();4576 char add_history (); 4621 4577 int 4622 4578 main () 4623 4579 { 4624 readline();4580 add_history (); 4625 4581 ; 4626 4582 return 0; 4627 4583 } … … 4648 4604 ac_status=$? 4649 4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4650 4606 (exit $ac_status); }; }; then 4651 ac_cv_lib_readline_readline=yes4607 READLINE="-lreadline -lncurses" 4652 4608 else 4653 4609 echo "$as_me: failed program was:" >&5 4654 4610 sed 's/^/| /' conftest.$ac_ext >&5 4655 4611 4656 ac_cv_lib_readline_readline=no 4612 { { echo "$as_me:$LINENO: error: unable to detect readline" >&5 4613 echo "$as_me: error: unable to detect readline" >&2;} 4614 { (exit 1); exit 1; }; } 4657 4615 fi 4658 4616 rm -f conftest.err conftest.$ac_objext \ 4659 4617 conftest$ac_exeext conftest.$ac_ext 4660 LIBS=$ac_check_lib_save_LIBS 4618 4661 4619 fi 4662 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 4663 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 4664 if test $ac_cv_lib_readline_readline = yes; then 4665 READLINE=-lreadline 4666 else 4667 { { echo "$as_me:$LINENO: error: the required \"readline\" library is missing" >&5 4668 echo "$as_me: error: the required \"readline\" library is missing" >&2;} 4669 { (exit 1); exit 1; }; } 4620 rm -f conftest.err conftest.$ac_objext \ 4621 conftest$ac_exeext conftest.$ac_ext 4622 LIBS="$save_LIBS" 4623 echo "$as_me:$LINENO: result: $READLINE" >&5 4624 echo "${ECHO_T}$READLINE" >&6 4625 READLINE_DEPS= 4626 READLINE_CFLAGS= 4627 else 4628 READLINE='$(READLINE_DIR)/libreadline.a' 4629 READLINE_DEPS='$(READLINE)' 4630 READLINE_CFLAGS='-I$(READLINE_SRC)/..' 4670 4631 fi 4671 4632 4672 fi 4633 4634 4673 4635 4674 4636 4675 4637 ac_sources="$sim_link_files" … … 5389 5351 s,@sim_stdio@,$sim_stdio,;t t 5390 5352 s,@sim_trace@,$sim_trace,;t t 5391 5353 s,@sim_profile@,$sim_profile,;t t 5392 s,@TERMCAP@,$TERMCAP,;t t5393 5354 s,@READLINE@,$READLINE,;t t 5355 s,@READLINE_DEPS@,$READLINE_DEPS,;t t 5356 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t 5394 5357 s,@cgen_breaks@,$cgen_breaks,;t t 5395 5358 s,@LIBOBJS@,$LIBOBJS,;t t 5396 5359 s,@LTLIBOBJS@,$LTLIBOBJS,;t t -
sim/erc32/configure.ac
diff -Naur gdb-6.8.orig/sim/erc32/configure.ac gdb-6.8/sim/erc32/configure.ac
old new 11 11 12 12 AC_CHECK_HEADERS(stdlib.h) 13 13 14 # In the Cygwin environment, we need some additional flags. 15 AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin, 16 [AC_EGREP_CPP(lose, [ 17 #ifdef __CYGWIN__ 18 lose 19 #endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])]) 14 AC_ARG_WITH([system-readline], 15 [AS_HELP_STRING([--with-system-readline], 16 [use installed readline library])]) 20 17 21 if test x$sim_cv_os_cygwin = xyes; then 22 TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32' 18 if test "$with_system_readline" = yes; then 19 AC_MSG_CHECKING([for readline]) 20 save_LIBS="$LIBS" 21 LIBS="-lreadline $save_LIBS" 22 AC_LINK_IFELSE([AC_LANG_CALL([], 23 [add_history])], [READLINE=-lreadline], 24 [ LIBS="-lreadline -lncurses $save_LIBS" 25 AC_LINK_IFELSE([AC_LANG_CALL([], 26 [add_history])], [READLINE="-lreadline -lncurses"], 27 [AC_MSG_ERROR([unable to detect readline])]) 28 ]) 29 LIBS="$save_LIBS" 30 AC_MSG_RESULT($READLINE) 31 READLINE_DEPS= 32 READLINE_CFLAGS= 23 33 else 24 AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="") 25 fi 26 AC_SUBST(TERMCAP) 27 28 # We prefer the in-tree readline. Top-level dependencies make sure 29 # src/readline (if it's there) is configured before src/sim. 30 if test -r ../../readline/Makefile; then 31 READLINE=../../readline/libreadline.a 32 else 33 AC_CHECK_LIB(readline, readline, READLINE=-lreadline, 34 AC_ERROR([the required "readline" library is missing]), $TERMCAP) 34 READLINE='$(READLINE_DIR)/libreadline.a' 35 READLINE_DEPS='$(READLINE)' 36 READLINE_CFLAGS='-I$(READLINE_SRC)/..' 35 37 fi 36 38 AC_SUBST(READLINE) 39 AC_SUBST(READLINE_DEPS) 40 AC_SUBST(READLINE_CFLAGS) 41 37 42 SIM_AC_OUTPUT -
sim/erc32/erc32.c
diff -Naur gdb-6.8.orig/sim/erc32/erc32.c gdb-6.8/sim/erc32/erc32.c
old new 24 24 25 25 #include <sys/types.h> 26 26 #include <stdio.h> 27 #include <string.h> 27 28 #include <termios.h> 28 29 #include <sys/fcntl.h> 29 30 #include <sys/file.h> … … 413 414 if (rom8) mec_memcfg &= ~0x20000; 414 415 else mec_memcfg |= 0x20000; 415 416 416 mem_ramsz = ( 256* 1024) << ((mec_memcfg >> 10) & 7);417 mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7); 417 418 mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7); 418 419 419 420 if (sparclite_board) { … … 1659 1660 errmec = 0; 1660 1661 return(1); 1661 1662 } 1662 #endif ;1663 #endif 1663 1664 1664 1665 if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) { 1665 1666 fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz); … … 1736 1737 errmec = 0; 1737 1738 return(1); 1738 1739 } 1739 #endif ;1740 #endif 1740 1741 1741 1742 if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) { 1742 1743 if (mem_accprot) { -
sim/erc32/exec.c
diff -Naur gdb-6.8.orig/sim/erc32/exec.c gdb-6.8/sim/erc32/exec.c
old new 1713 1713 sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1]; 1714 1714 sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1]; 1715 1715 default: 1716 ;1716 break; 1717 1717 } 1718 1718 #endif 1719 1719 … … 1886 1886 sregs->fs[rd & ~1] = sregs->fdp[rd | 1]; 1887 1887 sregs->fs[rd | 1] = sregs->fdp[rd & ~1]; 1888 1888 default: 1889 ;1889 break; 1890 1890 } 1891 1891 #endif 1892 1892 if (sregs->fpstate == FP_EXC_PE) { -
sim/erc32/Makefile.in
diff -Naur gdb-6.8.orig/sim/erc32/Makefile.in gdb-6.8/sim/erc32/Makefile.in
old new 18 18 19 19 ## COMMON_PRE_CONFIG_FRAG 20 20 21 TERMCAP_LIB = @TERMCAP@ 21 # TERMCAP_LIB = -lncurses 22 22 READLINE_LIB = @READLINE@ 23 23 24 24 SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o 25 25 SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm 26 SIM_EXTRA_ALL = sis 26 SIM_EXTRA_ALL = sis$(EXEEXT) 27 27 SIM_EXTRA_INSTALL = install-sis 28 28 SIM_EXTRA_CLEAN = clean-sis 29 29 … … 37 37 # `sis' doesn't need interf.o. 38 38 SIS_OFILES = exec.o erc32.o func.o help.o float.o 39 39 40 sis : sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)41 $(CC) $(ALL_CFLAGS) -o sis \40 sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS) 41 $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \ 42 42 sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS) 43 43 44 44 # FIXME: This computes the build host's endianness, doesn't it? … … 51 51 52 52 # Copy the files into directories where they will be run. 53 53 install-sis: installdirs 54 n=`echo sis | sed '$(program_transform_name)'`; \55 $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n $(EXEEXT)54 n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \ 55 $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n 56 56 57 57 clean-sis: 58 rm -f sis end end.h58 rm -f sis$(EXEEXT) end end.h 59 59 60 60 configure: 61 61 @echo "Rebuilding configure..." -
sim/ppc/ppc-instructions
diff -Naur gdb-6.8.orig/sim/ppc/ppc-instructions gdb-6.8/sim/ppc/ppc-instructions
old new 3402 3402 case spr_dec: 3403 3403 *rT = cpu_get_decrementer(processor); 3404 3404 break; 3405 case spr_tbrl: 3406 if (is_64bit_implementation) *rT = TB; 3407 else *rT = EXTRACTED64(TB, 32, 63); 3408 break; 3409 case spr_tbru: 3410 if (is_64bit_implementation) *rT = EXTRACTED64(TB, 0, 31); 3411 else *rT = EXTRACTED64(TB, 0, 31); 3412 break; 3405 3413 case spr_tbu: 3406 3414 case spr_tbl: 3407 3415 /* NOTE - these SPR's are not readable. Use mftb[ul] */ -
sim/ppc/ppc-spr-table
diff -Naur gdb-6.8.orig/sim/ppc/ppc-spr-table gdb-6.8/sim/ppc/ppc-spr-table
old new 32 32 SRR0:26:0:0 33 33 SRR1:27:0:0 34 34 VRSAVE:256:0:0 35 TBRL:268:0:0 36 TBRU:269:0:0 35 37 SPRG0:272:0:0 36 38 SPRG1:273:0:0 37 39 SPRG2:274:0:0
Note: See TracBrowser
for help on using the repository browser.