Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Multiplexed registers and invalidating the register cache
@ 2004-04-14 11:44 Orjan Friberg
  2004-04-14 14:46 ` Daniel Jacobowitz
  0 siblings, 1 reply; 27+ messages in thread
From: Orjan Friberg @ 2004-04-14 11:44 UTC (permalink / raw)
  To: gdb-patches

Hi all,

I'm working on support for a CPU where some of the registers are in a 
bank selected by another register, meaning that changing the bank select 
register changes the contents (and meaning) for a whole set of other 
registers.

The target is a remote stub, and the way I've pictured this in my head a 
change to the bank select register (via a 'P' packet) invalidates the 
register cache, causing the whole register contents to be fetched again 
(with a 'g' packet).  (The remote stub needs to re-read the affected 
registers upon the write of the bank select register, of course.)

Is there some sort of "write register" hook I could use to indicate that 
the registers should be fetched again if the bank select register is 
written to?  I followed what happens when doing a "set $register", but I 
couldn't find any such hook in that path.

-- 
Orjan Friberg
Axis Communications


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2004-04-30  7:39 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-14 11:44 Multiplexed registers and invalidating the register cache Orjan Friberg
2004-04-14 14:46 ` Daniel Jacobowitz
2004-04-14 16:01   ` Andrew Cagney
2004-04-15 10:46   ` Orjan Friberg
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox