qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 4/7] sysbus/sysbus_mmio_map: parameterise map


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v1 4/7] sysbus/sysbus_mmio_map: parameterise mapped region
Date: Fri, 19 Oct 2012 09:06:03 +0100

On 19 October 2012 07:40, Peter Crosthwaite
<address@hidden> wrote:
> Add a variant to sysbus_mmio_map that allow specifying a target memory region.
> The requested device memory region is mapped within the argument target memory
> region rather than the default (get_system_memory()). Behaviour of original
> sysbus_mmio_map remains unchanged.

If you want to take a sysbus device and map one of its mmio regions into
something other than the system memory space, the usual approach is to
use sysbus_mmio_get_region() to get the MemoryRegion* and then you can
do what you want with it.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]