From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: yao@codesourcery.com
Cc: gdb-patches@sourceware.org, mark.kettenis@xs4all.nl
Subject: Re: [PATCH] Don't attach to 'target_changed' observer in regcache
Date: Thu, 09 Aug 2012 08:12:00 -0000 [thread overview]
Message-ID: <201208090811.q798Bbeq000405@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <5527210.MOXy64knkR@qiyao.dyndns.org> (message from Yao Qi on Thu, 9 Aug 2012 11:10:16 +0800)
> From: Yao Qi <yao@codesourcery.com>
> Date: Thu, 9 Aug 2012 11:10:16 +0800
>
> On Wednesday, August 08, 2012 07:53:40 PM Mark Kettenis wrote:
> > > The author (Orjan) tried to support "changing the bank select register
> > > changes the contents (and meaning) for a whole set of other registers."
> > > The requirement is quite specific to Orjan's own port, so the better
> > > solution is to attach a function which invalidates all regcache in
> > > Orjan's backend, instead of doing it in target-independent part.
> >
> > Banked registers aren't really that exotic. Especially if you realise
> > that register windows (SPARC, IA-64) are essentially banked registers.
> >
>
> Banked register doesn't matter here. "Changing one special register
> changes the whole set of registers", which is exotic, matters. Are
> they (banked registers) switched by modifying a certain register?
> Per my few knowledge on SPARC and IA-64, the answer is "No".
Banked registers are by defenition switched by modifying a certain
register I'd say. And yes, for SPARC by changing %cwp will change the
visible register window and therefore the contents of the %i0-7, %l0-7
and %o0-7 registers. And changing some bits in the %pstate register
will switch between sets of alternate global registers (%g0-7). It's
been a while since I last looked at IA-64, but I'm pretty sure it has
some similar mechanisms. Thinking about this a bit more, PA-RISC is
another architecture that has such a mechanism. Some of its registers
are shadowed and you can switch between the shadowed and non-shadowed
by modifying a bit in the %psw register.
> The issues of this patch are 1) modifying read-only bits in writable
> register (as Dan pointed out), 2) troubles to Orjan's port. I can't
> see any other issues of this patch.
And I'm telling you that the "troubles with Orjan's port" are more
general than you think they are.
next prev parent reply other threads:[~2012-08-09 8:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 7:17 Yao Qi
2012-08-02 14:46 ` Pedro Alves
2012-08-02 15:40 ` Yao Qi
2012-08-08 17:54 ` Mark Kettenis
2012-08-09 3:11 ` Yao Qi
2012-08-09 8:12 ` Mark Kettenis [this message]
2012-08-09 8:37 ` Yao Qi
2012-08-21 19:39 ` Pedro Alves
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=201208090811.q798Bbeq000405@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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