qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] object owner argument of memory_region_init_ram
@ 2019-01-23  3:07 ksourav
  2019-01-23  6:10 ` Thomas Huth
  0 siblings, 1 reply; 5+ messages in thread
From: ksourav @ 2019-01-23  3:07 UTC (permalink / raw)
  To: qemu-devel

Hi All,

I am trying to learn how qemu implements different soc.
While reading the source code, I found that in some socs, object owner
is passed as NULL to the routine memory_region_init_ram() (for example
in nrf51 soc) and in some socs(for example in Allwinner A10) an
object(non NULL) is passed to memory_region_initi_ram().
When I checked docs/devel/memory.txt, I found below lines.
"For regions that "have no owner" (NULL is passed at creation time), the
machine object is actually used as the owner."
Is the machine object refers to the actual board instance that will
use the soc? For example microbit in case of nrf51 soc ?
Is there any reason of not passing object as owner or in other words,
when do we pass NULL or an object to memory_region_initi_ram() ?

Thanks & Regards
kumar sourav

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

end of thread, other threads:[~2019-01-25 12:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-23  3:07 [Qemu-devel] object owner argument of memory_region_init_ram ksourav
2019-01-23  6:10 ` Thomas Huth
2019-01-23 10:53   ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2019-01-23 15:50     ` ksourav
2019-01-25 12:40       ` Thomas Huth

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 NNTP newsgroup(s).