From: Jim Blandy <jimb@redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: "Ken Dyck" <Ken.Dyck@dspfactory.com>, gdb@sources.redhat.com
Subject: Re: FW: Targeting dual Harvard architectures
Date: Wed, 29 Oct 2003 15:44:00 -0000 [thread overview]
Message-ID: <vt2brs0m4mu.fsf@zenia.home> (raw)
In-Reply-To: <1031029082128.ZM5375@localhost.localdomain>
Kevin Buettner <kevinb@redhat.com> writes:
> On Oct 29, 1:07am, Jim Blandy wrote:
>
> > - At the moment, make_type_with_address_space is doing two jobs ---
> > it's handling both the address space stuff, and the non-standard
> > pointer type stuff (at the moment, only s/390 'mode32' pointers).
> > You'd probably need to split that into two distinct functions, and
> > give them better names. Not sure here.
>
> It may also be possible to (re)implement the @code, @data mechanisms
> using the address class methods. That might be the cleanest since it
> would then be possible for an architecture to do whatever it wants
> with regard to adding more address spaces. I.e. a dual Harvard
> architecture could have @code, @data1, and @data2 or even more
> suitable names which'd make more sense for that architecture.
Hmm. Address spaces are mutually exclusive of each other --- but not
of address classes. For example, there's no reason one couldn't have
a '@mode32 @code char *'. But what combinations are permitted and
which are nonsensical should be up to the target.
Perhaps, instead of having gdbarch methods that turn a name into an
int, we should have gdbarch methods that take a name, and the old int
(initially zero), and return the new int. That is, let them modify
the arch-specific flag set as needed, not just specify a new flag set.
That way, Ken's architecture could set aside a bitfield for the
spaces, and allocate other bits for whatever address classes the
architecture supports. The gdbarch method itself would recognize that
'@code @data1 @data2 char *' is a nonsensical type, and report the
error, but would know that the (hypothetical) '@mode32 @code char *'
is okay.
next prev parent reply other threads:[~2003-10-29 15:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-27 13:13 Ken Dyck
2003-10-29 6:08 ` Jim Blandy
2003-10-29 6:16 ` Jim Blandy
2003-10-29 6:58 ` Eli Zaretskii
2003-10-29 8:21 ` Kevin Buettner
2003-10-29 15:44 ` Jim Blandy [this message]
2003-10-29 16:59 ` Andrew Cagney
2003-10-29 17:19 ` 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=vt2brs0m4mu.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=Ken.Dyck@dspfactory.com \
--cc=gdb@sources.redhat.com \
--cc=kevinb@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