From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16963 invoked by alias); 10 Oct 2007 06:49:40 -0000 Received: (qmail 16956 invoked by uid 22791); 10 Oct 2007 06:49:39 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 10 Oct 2007 06:49:36 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9A6nZZP026775 for ; Wed, 10 Oct 2007 02:49:35 -0400 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9A6nYm5018507; Wed, 10 Oct 2007 02:49:34 -0400 Received: from localhost.localdomain (vpn-6-12.fab.redhat.com [10.33.6.12]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9A6nXup000765; Wed, 10 Oct 2007 02:49:33 -0400 Message-ID: <470C75FD.3080803@redhat.com> Date: Wed, 10 Oct 2007 06:49:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Andrew Cagney CC: frysk@sourceware.org Subject: Re: frysk-core/frysk proc/BankRegister.java proc/C ... References: <20071009194630.3523.qmail@sourceware.org> <470BDF0C.5020608@redhat.com> <470C4BC2.7000306@redhat.com> In-Reply-To: <470C4BC2.7000306@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00034.txt.bz2 Andrew Cagney wrote: > Phil Muldoon wrote: >> Andrew, >> >> I know this work is ongoing, so should I sit tight regarding the >> FIXME notifications? I'm not sure how to fix the gpr registers >> access. If it is work ongoing, I'll just wait until you give the >> signal with an explanation regarding how a Task accesses it's own >> registers. >> > The function to look at is Task.accessRegister(Register register,int > offset, int length, byte[] buffer, int start, boolean write) which > will does a direct/raw byte copy of the data into a buffer. > > However, yes, perhaps hold off a little until I've got all the > register code in frysk.proc resolved. > Andrew > Ok will do, will wait and see. As a rhetorical question, what is wrong with task.getSomeRegisterFunctionName("eax") as a general helper function? Why do I need to know (ptrace buffer?) offset and length to access a register? Is this because register access is being move to the task from the ISA? Just trying to get a sense of where this refactor is going. Regards Phil