qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] qemu/hw pckbd.c


From: Paul Brook
Subject: Re: [Qemu-devel] qemu/hw pckbd.c
Date: Wed, 18 Apr 2007 17:08:21 +0100
User-agent: KMail/1.9.5

> > 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

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