qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Loading image/elf to cpu that has different not system memory address space
@ 2015-09-23 15:17 Marcin Krzemiński
  2015-09-23 15:46 ` Peter Maydell
  0 siblings, 1 reply; 14+ messages in thread
From: Marcin Krzemiński @ 2015-09-23 15:17 UTC (permalink / raw)
  To: qemu-devel@nongnu.org Developers

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

Hello,

I am trying to write a model of embedded board that have corterx-m3 and
cotex a9 processors.
Because M3 see different memory at address 0x0 than A9 (m3 has small rom,
a9 has whole ram) I created different address space for m3 (thanks Peter
Crosthwaite! for hints how to do this!).
Now I stacked at loading "kernel" to start M3. If I use default address
space for M3 I can load I run my elf filr (it can be image, but currently
it is easiest for me with elf) all works fine.
The problem is when I switch to my new (root MR is not
from get_system_memory() call ) i got execution outside RAM exception.
That is happening because there are only zeroes in memory pointed by my
second address space.
The question is how can I load image to this memory (it might be elf, but
binary image also is fine)?
I can not even find the code that loads data to memory in fist place. Could
you point me where the loading is done in the code?

Regards,
Marcin Krzemiński

[-- Attachment #2: Type: text/html, Size: 1127 bytes --]

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

end of thread, other threads:[~2015-09-30 13:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 15:17 [Qemu-devel] Loading image/elf to cpu that has different not system memory address space Marcin Krzemiński
2015-09-23 15:46 ` Peter Maydell
2015-09-23 17:31   ` mar.krzeminski
2015-09-24  3:06     ` Peter Crosthwaite
2015-09-24  3:07       ` Peter Crosthwaite
2015-09-24 17:14         ` mar.krzeminski
2015-09-24 18:38           ` Peter Crosthwaite
2015-09-24 18:58             ` mar.krzeminski
2015-09-29 22:40               ` Alistair Francis
2015-09-29 22:59                 ` Peter Maydell
2015-09-30  5:18                   ` Marcin Krzemiński
2015-09-30 10:44                     ` Peter Maydell
2015-09-30 12:15                       ` Marcin Krzemiński
2015-09-30 13:26                         ` Peter Maydell

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).