source:
rtems/contrib/crossrpms/patches/gdb-6.8-rtems4.9-20080329.diff
@
a408b33a
Last change on this file since a408b33a was a408b33a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/08 at 04:38:36 | |
---|---|
|
|
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 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@ 22 READLINE_LIB = @READLINE@ 21 # TERMCAP_LIB = @TERMCAP_LIB@ 22 TERMCAP_LIB = -lncurses 23 # READLINE_LIB = @READLINE_LIB@ 24 READLINE_LIB = -lreadline 23 25 24 26 SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o 25 27 SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm 26 SIM_EXTRA_ALL = sis 28 SIM_EXTRA_ALL = sis$(EXEEXT) 27 29 SIM_EXTRA_INSTALL = install-sis 28 30 SIM_EXTRA_CLEAN = clean-sis 29 31 … … 37 39 # `sis' doesn't need interf.o. 38 40 SIS_OFILES = exec.o erc32.o func.o help.o float.o 39 41 40 sis : sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)41 $(CC) $(ALL_CFLAGS) -o sis \42 sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS) 43 $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \ 42 44 sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS) 43 45 44 46 # FIXME: This computes the build host's endianness, doesn't it? … … 51 53 52 54 # Copy the files into directories where they will be run. 53 55 install-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 56 58 57 59 clean-sis: 58 rm -f sis end end.h60 rm -f sis$(EXEEXT) end end.h 59 61 60 62 configure: 61 63 @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.