From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17869 invoked by alias); 1 Nov 2005 09:10:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 17795 invoked by uid 22791); 1 Nov 2005 09:10:01 -0000 Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 01 Nov 2005 09:10:01 +0000 Received: from kiwi.ods.com.au ([147.10.200.160]) by omta05sl.mx.bigpond.com with ESMTP id <20051101090957.GKPV24868.omta05sl.mx.bigpond.com@kiwi.ods.com.au>; Tue, 1 Nov 2005 09:09:57 +0000 Received: from [172.16.100.190] (moa.ods.com.au [172.16.100.190]) by kiwi.ods.com.au (8.12.8/8.12.8) with ESMTP id jA199tDJ012799; Tue, 1 Nov 2005 20:09:56 +1100 Message-ID: <436730E3.9040700@contemporary.net.au> Date: Tue, 01 Nov 2005 09:10:00 -0000 From: Chris Johns User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sources.redhat.com Subject: Re: selecting a processor variant with gdbarch. References: <4365D115.9070406@contemporary.net.au> <20051031141943.GC25504@nevyn.them.org> In-Reply-To: <20051031141943.GC25504@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-11/txt/msg00005.txt.bz2 Daniel Jacobowitz wrote: > On Mon, Oct 31, 2005 at 07:08:53PM +1100, Chris Johns wrote: > >>Hello, >> >>What is the preferred way to have gdbarch select a specific processor >>variant ? > > > Can you be more specific about what you want? > On the Coldfire we have a growing number of processors with a few different cores each running the same code, yet with register sets that vary in different ways. When using BDM with a Coldfire you need to get at some of the processor specific registers to access memory controllers to enable RAM to download a program. We can teach a BDM target ops how to detect various processors and make the selection. Getting gdbarch to handle the change is what I would like to understand. > >>How can a target op inform the gdbarch what the specific processor is ? > > > Not yet, but I'm working on implementing that. > I have played around with changing the register names and types but regcache proved a hurdle. It sets up the cache once during initialisation. If I could make a a call to get regcache to re-initialise this hurdle could be overcome. Chris