public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Memory-mapped peripheral registers, remote protocol and memory maps
@ 2012-11-28 19:24 Jon Beniston
  2012-11-29  9:16 ` Yao Qi
  0 siblings, 1 reply; 7+ messages in thread
From: Jon Beniston @ 2012-11-28 19:24 UTC (permalink / raw)
  To: gdb

Hi,

How is the access of memory-mapped peripheral registers handled over the
remote protocol? By this, I mean how can you force a 32-bit read/write,
rather than 4 byte accesses, to read/write a 32-bit memory-mapper register?

I can see that you can define memory regions with the mem command, and set
the memory access size to 32, but how does this map over the remote
protocol?   The remote protocol documentation for the 'm' packet says: "The
stub need not use any particular size or alignment when gathering data from
memory for the response; even if addr is word-aligned and length is a
multiple of the word size, the stub is free to use byte accesses, or not.
For this reason, this packet may not be suitable for accessing memory-mapped
I/O devices.". Is there another packet that is suitable? It doesn't look
like the code in remote.c uses this attribute.

Also, in the documentation of the memory map format, it seems the only
memory types are ram, rom and flash, with the only property being blocksize.
Should there not be additional properties to correspond to the attributes
supported by the mem command (i.e. an access size property)?

Cheers,
Jon

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

end of thread, other threads:[~2012-11-29 17:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-28 19:24 Memory-mapped peripheral registers, remote protocol and memory maps Jon Beniston
2012-11-29  9:16 ` Yao Qi
2012-11-29 11:23   ` Jon Beniston
2012-11-29 15:51     ` Yao Qi
2012-11-29 16:32   ` Jon Beniston
2012-11-29 17:23     ` Paul_Koning
2012-11-29 17:57       ` Jon Beniston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).