Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagercon.com>
To: Michael Eager <eager@eagercon.com>,  gdb@sources.redhat.com
Subject: Re: Non-uniform address spaces
Date: Sat, 23 Jun 2007 21:47:00 -0000	[thread overview]
Message-ID: <467D9503.9060804@eagercon.com> (raw)
In-Reply-To: <20070623212557.GB3448@caradoc.them.org>

Daniel Jacobowitz wrote:
> On Sat, Jun 23, 2007 at 09:31:31AM -0700, Michael Eager wrote:
>> Any suggestions on how to support a target which has
>> a non-uniform address space?  An address is a tuple which
>> includes a processor id, a thread id, and an offset.
>> There is a mapping function which translates the tuple
>> into a physical address.
>>
>> Ideally, it would be nice to replace the current definition
>> of CORE_ADDR with a struct and add functions to to do
>> operations like increment/decrement address.  But the
>> assumption that the address space is flat and that you
>> can do arithmetic on addresses is pervasive.
> 
> How big are each of those objects (processor id, thread id, offset)?

They would all fit in a 128-bit word.

> The conventional way to do this in GDB is to have a mapping from
> CORE_ADDR to target addresses, not to target pointers.  Most of the
> Harvard architecture ports work this way.  However, there may not be
> enough hooks for you to get away with it if they're as dynamic as it
> sounds.

Having a 128-bit CORE_ADDR sounds possible, but there are many
places where there's arithmetic or comparisons done on the values.
These would all be problematic.  Usually correct, occasionally not.

I thought most of the HA systems just increased the address size by
one bit and had the high-order bit specify whether the address
was in D or I address space.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


  reply	other threads:[~2007-06-23 21:47 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-23 16:31 Michael Eager
2007-06-23 21:25 ` Daniel Jacobowitz
2007-06-23 21:47   ` Michael Eager [this message]
2007-06-23 23:09     ` Daniel Jacobowitz
2007-06-25 17:46     ` Jim Blandy
2007-06-25 18:08       ` Michael Eager
2007-06-25 19:05         ` Jim Blandy
2007-06-25 19:09           ` Daniel Jacobowitz
2007-06-25 20:04           ` Michael Eager
2007-06-25 22:23             ` Jim Blandy
2007-06-25 22:55               ` Michael Eager
2007-06-25 23:08                 ` basic gdb usage question Matt Funk
     [not found]                   ` <655C3D4066B7954481633935A40BB36F041415@ussunex02.svl.access-company.com>
2007-06-25 23:36                     ` Matt Funk
2007-06-26  1:25                       ` Michael Eager
2007-06-26  3:12                   ` Eli Zaretskii
2007-06-26 16:13                     ` Matt Funk
2007-06-27  3:29                       ` Eli Zaretskii
2007-06-26 16:56                 ` Non-uniform address spaces Jim Blandy
2007-06-26 17:22                   ` Michael Eager
2007-06-26 17:55                     ` Jim Blandy
2007-06-26 18:08                     ` Jim Blandy
2007-06-26 23:08                       ` Michael Eager
2007-06-26 23:39                         ` Jim Blandy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467D9503.9060804@eagercon.com \
    --to=eager@eagercon.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox