> > If you're interressed in such a feature, you may take a look of what
> > I've done in hw/ppc405_uc.c. There are some device sharing the same
> > memory page on those microcontrollers so I introduced a fake device
> > called mmio that allow to register multiple devices into a single page
> > in Qemu. I do use the serial_mm_init with the ioregister parameter set
> > to 0 for those designs.
> > This code may not be as generic as it would be if we want to make it a
> > standard Qemu function, but this may give a basis or ideas for it.
>
> On Sparc32 there are several devices that would benefit from sub-page
> granularity, so I vote for making this generic.

While you're fixing this, it would be good to fix overlapping devices as 
well ;-) Currently if you (temporarily) have overlapping regions then remove 
one of them you end up with unmapped memory. It may also make implementing 
flash devices simpler.

Paul


Reply via email to