Re: [PATCH v2 2/3] hw/char/mchp_pfsoc_mmuart: Use a MemoryRegion container

2021-09-28 Thread Alistair Francis
On Sat, Sep 25, 2021 at 11:34 PM Philippe Mathieu-Daudé wrote: > > Our device have 2 different I/O regions: > - a 16550 UART mapped for 32-bit accesses > - 13 extra registers > > Instead of mapping each region on the main bus, introduce > a container, map the 2 devices regions on the container, >

Re: [PATCH v2 2/3] hw/char/mchp_pfsoc_mmuart: Use a MemoryRegion container

2021-09-26 Thread Bin Meng
On Sat, Sep 25, 2021 at 9:37 PM Philippe Mathieu-Daudé wrote: > > Our device have 2 different I/O regions: > - a 16550 UART mapped for 32-bit accesses > - 13 extra registers > > Instead of mapping each region on the main bus, introduce > a container, map the 2 devices regions on the container, > a

[PATCH v2 2/3] hw/char/mchp_pfsoc_mmuart: Use a MemoryRegion container

2021-09-25 Thread Philippe Mathieu-Daudé
Our device have 2 different I/O regions: - a 16550 UART mapped for 32-bit accesses - 13 extra registers Instead of mapping each region on the main bus, introduce a container, map the 2 devices regions on the container, and map the container on the main bus. Before: (qemu) info mtree ...