Paolo,
the RFC was mainly for you:
Is this the good way to replicate 256 times a memory chunk containing a
bunch of different MMIO spaces?
...
> + /*
> + * Memory from VIA_BASE to VIA_BASE + 0x40000 is repeated
> + * from VIA_BASE + 0x40000 to VIA_BASE + 0x4000000
> + */
> + for (i = 1; i < 256; i++) {
> + MemoryRegion *io = g_malloc(sizeof(*io));
> + char *name = g_strdup_printf("mac_m68k.io[%d]", i);
> +
> + memory_region_init_alias(io, NULL, name, get_system_memory(),
> + VIA_BASE, 0x40000);
> + memory_region_add_subregion(get_system_memory(),
> + VIA_BASE + i * 0x40000, io);
> + g_free(name);
> + }
> +
...
Thanks,
Laurent