From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5004 invoked by alias); 8 Dec 2006 15:50:12 -0000 Received: (qmail 4969 invoked by uid 22791); 8 Dec 2006 15:50:10 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate6.de.ibm.com (HELO mtagate6.de.ibm.com) (195.212.29.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Dec 2006 15:50:02 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate6.de.ibm.com (8.13.8/8.13.8) with ESMTP id kB8FnwOV292392 for ; Fri, 8 Dec 2006 15:49:58 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id kB8FnwlT2674848 for ; Fri, 8 Dec 2006 16:49:58 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id kB8FnwtW010557 for ; Fri, 8 Dec 2006 16:49:58 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id kB8FnvR8010554; Fri, 8 Dec 2006 16:49:58 +0100 Message-Id: <200612081549.kB8FnvR8010554@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 8 Dec 2006 16:49:57 +0100 Subject: Re: [RFA][2/5] New port: Cell BE SPU (valops.c fix) To: jimb@codesourcery.com (Jim Blandy) Date: Fri, 08 Dec 2006 15:50:00 -0000 From: "Ulrich Weigand" Cc: drow@false.org (Daniel Jacobowitz), gdb-patches@sourceware.org In-Reply-To: from "Jim Blandy" at Dec 06, 2006 03:39:47 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00121.txt.bz2 Jim Blandy wrote: > The key is that r2v knows how to both decode the register's contents, > and how to re-encode both the full contents, or a portion of the > contents, so it can leave enough information in the closure to tell > v2r how to handle component writes. I see. So basically, instead of encoding the original type in the struct value, you have accessor functions in the struct value, and the back-end can install different versions of those functions if it needs to handle types differently. That would work as well. I've prepared a set of two patches that fix my spu problem in a way that I feel would be a step into the direction you describe. I'll post those shortly ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com