source: rtems/contrib/crossrpms/patches/gdb-6.8-rtems4.9-20080329.diff @ a408b33a

4.104.114.95
Last change on this file since a408b33a was a408b33a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/08 at 04:38:36

New.

  • Property mode set to 100644
File size: 4.1 KB
  • sim/erc32/erc32.c

    diff -Naur gdb-6.8.orig/sim/erc32/erc32.c gdb-6.8/sim/erc32/erc32.c
    old new  
    2424
    2525#include <sys/types.h>
    2626#include <stdio.h>
     27#include <string.h>
    2728#include <termios.h>
    2829#include <sys/fcntl.h>
    2930#include <sys/file.h>
     
    413414    if (rom8) mec_memcfg &= ~0x20000;
    414415    else mec_memcfg |= 0x20000;
    415416
    416     mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
     417    mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
    417418    mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
    418419
    419420    if (sparclite_board) {
     
    16591660        errmec = 0;
    16601661        return(1);
    16611662    }
    1662 #endif;
     1663#endif
    16631664
    16641665    if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
    16651666        fetch_bytes (asi, &ramb[addr & mem_rammask], data, sz);
     
    17361737        errmec = 0;
    17371738        return(1);
    17381739    }
    1739 #endif;
     1740#endif
    17401741
    17411742    if ((addr >= mem_ramstart) && (addr < (mem_ramstart + mem_ramsz))) {
    17421743        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  
    17131713            sregs->fdp[rs2 | 1] = sregs->fs[rs2 & ~1];
    17141714            sregs->fdp[rs2 & ~1] = sregs->fs[rs2 | 1];
    17151715    default:
    1716       ;
     1716      break;
    17171717    }
    17181718#endif
    17191719
     
    18861886        sregs->fs[rd & ~1] = sregs->fdp[rd | 1];
    18871887        sregs->fs[rd | 1] = sregs->fdp[rd & ~1];
    18881888    default:
    1889       ;
     1889      break;
    18901890    }
    18911891#endif
    18921892    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  
    1818
    1919## COMMON_PRE_CONFIG_FRAG
    2020
    21 TERMCAP_LIB = @TERMCAP@
    22 READLINE_LIB = @READLINE@
     21# TERMCAP_LIB = @TERMCAP_LIB@
     22TERMCAP_LIB = -lncurses
     23# READLINE_LIB = @READLINE_LIB@
     24READLINE_LIB = -lreadline
    2325
    2426SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
    2527SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
    26 SIM_EXTRA_ALL = sis
     28SIM_EXTRA_ALL = sis$(EXEEXT)
    2729SIM_EXTRA_INSTALL = install-sis
    2830SIM_EXTRA_CLEAN = clean-sis
    2931
     
    3739# `sis' doesn't need interf.o.
    3840SIS_OFILES = exec.o erc32.o func.o help.o float.o
    3941
    40 sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
    41         $(CC) $(ALL_CFLAGS) -o sis \
     42sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
     43        $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
    4244          sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
    4345
    4446# FIXME: This computes the build host's endianness, doesn't it?
     
    5153
    5254# Copy the files into directories where they will be run.
    5355install-sis: installdirs
    54         n=`echo sis | sed '$(program_transform_name)'`; \
    55         $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
     56        n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
     57        $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
    5658
    5759clean-sis:
    58         rm -f sis end end.h
     60        rm -f sis$(EXEEXT) end end.h
    5961
    6062configure:
    6163        @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  
    34023402            case spr_dec:
    34033403              *rT = cpu_get_decrementer(processor);
    34043404              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;
    34053413            case spr_tbu:
    34063414            case spr_tbl:
    34073415              /* 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  
    3232SRR0:26:0:0
    3333SRR1:27:0:0
    3434VRSAVE:256:0:0
     35TBRL:268:0:0
     36TBRU:269:0:0
    3537SPRG0:272:0:0
    3638SPRG1:273:0:0
    3739SPRG2:274:0:0
Note: See TracBrowser for help on using the repository browser.