qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] External RAM
@ 2012-08-29 13:38 Brian Roantree
  2012-09-01  9:26 ` Blue Swirl
  2012-09-03 14:59 ` Andreas Färber
  0 siblings, 2 replies; 4+ messages in thread
From: Brian Roantree @ 2012-08-29 13:38 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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

Hi, I'm not sure which list this belongs in and was unable to find anything like it so here goes,

I am using QEMU 0.15.90 to emulate a processor and have currently got it running in a loosely timed simulation with a systemC kernel as well, I have also  created and attached a block of RAM as well as another device and am running into a problem. It is registered as IO memory and replaced the generic internal ram that was allocated using qemu_ram_alloc, the problem I'm having is that my bootloader is now trying to write to RAM address  4293918720 (0xFFF00000) which doesn't exist. My question is can I somehow use qemu_ram_alloc to allocate the RAM but still use the different IO functions to read and write from this block of memory?

I have tried creating a device for the ram and after initialising it using

Addr = qemu_ram_alloc(s->sc_shared_ram,"name.ram", ram_size);
cpu_register_physical_memory(addr_base, ram_size, Addr);
where s is processor device_state and sc_shared_ram is a device_state with the modified read and write functions

however when the Ram is used the read and write functions are never employed.

Any help you could provide would be much appreciated, also apologies if I'm not that clear with my wording I haven't been doing QEMU development that long so am not also sure how to express what I want.

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

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

end of thread, other threads:[~2012-09-03 14:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 13:38 [Qemu-devel] External RAM Brian Roantree
2012-09-01  9:26 ` Blue Swirl
2012-09-03 13:27   ` Brian Roantree
2012-09-03 14:59 ` Andreas Färber

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