[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] How do i tell QEMU that memory i've have mapped is co
Re: [Qemu-discuss] How do i tell QEMU that memory i've have mapped is code?
Mon, 12 Jan 2015 21:22:38 +0000
On 12 January 2015 at 00:44, Peter Fillmore <address@hidden> wrote:
> heres the code which creates the memory (contained in a custom driver):
>> memory_region_init_ram(&s->iomem, OBJECT(dev), "arm-lpc213x-iap", 0x1000,
>> sysbus_init_mmio(sd, &s->iomem);
>> char *memptr = memory_region_get_ram_ptr(&s->iomem) ;
>> memcpy(memptr,iapcode, sizeof(iapcode));
Have you remembered to actually map the RAM MemoryRegion into
system memory at the right address?