This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: SPU software icache support
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Mon, 12 Jan 2009 14:39:07 +1030
- Subject: Re: SPU software icache support
- References: <20090112002417.GG17107@bubble.grove.modra.org>
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