This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SPU software icache support


On Mon, Jan 12, 2009 at 10:54:17AM +1030, Alan Modra wrote:
> This is a first cut at software icache linker support for SPU.

I shouldn't make last minute changes, like adding the log2 vars.

	* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.

Index: bfd/elf32-spu.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-spu.c,v
retrieving revision 1.58
diff -u -p -r1.58 elf32-spu.c
--- bfd/elf32-spu.c	12 Jan 2009 00:23:56 -0000	1.58
+++ bfd/elf32-spu.c	12 Jan 2009 04:03:49 -0000
@@ -4372,7 +4372,7 @@ spu_elf_auto_overlay (struct bfd_link_in
 	  unsigned int indx = ovlynum - 1;
 	  unsigned int vma, lma;
 
-	  vma = (indx & (htab->num_lines_log2 - 1)) << htab->line_size_log2;
+	  vma = (indx & (htab->params->num_lines - 1)) << htab->line_size_log2;
 	  lma = indx << htab->line_size_log2;
 
 	  if (fprintf (script, " .ovly%u ABSOLUTE (ADDR (.ovl.init)) + %u "

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]