Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Orjan Friberg <orjan.friberg@axis.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Multiplexed registers and invalidating the register cache
Date: Thu, 15 Apr 2004 10:46:00 -0000	[thread overview]
Message-ID: <407E67EA.80701@axis.com> (raw)
In-Reply-To: <20040414144607.GA5700@nevyn.them.org>

Daniel Jacobowitz wrote:
> 
> I think you should make this change unconditionally - and flush the
> entire frame cache.

Pardon my ignorance, but why should the entire frame cache be flushed, 
instead of just invalidating the current set of registers?  Is it 
because frame pointer/return address registers (or something else 
affecting other frames) might change?

> I'm not sure whether it should be in the generic
> code that writes a register or the user-level code triggered by set
> $reg = val, though.

So either something like

   target_register_write (regno)

where the target-specific code can do whatever it wants (presumably 
calling flush_cached_frames), or a more specialized function

   target_flush_register_cache_on_register_write (regno)

and then have whatever calls that function do the actual frame cache 
flushing.

> Andrew convinced me that the performance cost associated with this
> would be small in practice.

So, it's not worth the trouble implementing a more fine-grained solution 
like "refetch only the modified register".

-- 
Orjan Friberg
Axis Communications


  parent reply	other threads:[~2004-04-15 10:46 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 11:44 Orjan Friberg
2004-04-14 14:46 ` Daniel Jacobowitz
2004-04-14 16:01   ` Andrew Cagney
2004-04-15 10:46   ` Orjan Friberg [this message]
2004-04-15 11:25     ` Orjan Friberg
2004-04-15 15:29       ` Andrew Cagney
2004-04-16 12:51         ` Orjan Friberg
2004-04-16 14:13           ` Daniel Jacobowitz
2004-04-16 14:54             ` Orjan Friberg
2004-04-16 19:15           ` Andrew Cagney
2004-04-19 14:13             ` Orjan Friberg
2004-04-21 16:48               ` Andrew Cagney
2004-04-22 13:58                 ` Orjan Friberg
2004-04-22 14:33                   ` Andrew Cagney
2004-04-23 11:25                     ` Orjan Friberg
2004-04-24  0:03                       ` Andrew Cagney
2004-04-23 15:20                         ` Orjan Friberg
2004-04-23 17:58                           ` Eli Zaretskii
2004-04-26  9:41                             ` Orjan Friberg
2004-04-24  0:03                           ` Andrew Cagney
2004-04-24  8:30                             ` Eli Zaretskii
2004-04-28 16:43                               ` Andrew Cagney
2004-04-28 17:40                                 ` Eli Zaretskii
2004-04-29  8:09                                   ` Orjan Friberg
2004-04-29 17:56                                     ` Eli Zaretskii
2004-04-30  7:39                                       ` Orjan Friberg
2004-04-26  9:50                             ` Orjan Friberg

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=407E67EA.80701@axis.com \
    --to=orjan.friberg@axis.com \
    --cc=drow@false.org \
    --cc=gdb-patches@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