On Sun, Aug 28, 2011 at 06:43:36PM +0300, Avi Kivity wrote:
> cfi02 is annoying in that is ignores some address bits; we probably
> want explicit support in the memory API for that.
>
> In order to get the correct opaque into the MemoryRegion object, the
> allocation scheme is changed so that the flash emulation code allocates
> memory, instead of the caller. This clears a FIXME in the flash code.
>
> Signed-off-by: Avi Kivity <
address@hidden>
> ---
>
> This is a rework of the pflash conversion to the memory API. It has changed
> significantly - the change in allocation described above - so please review
> carefully.
>
> The mips_malta change also changes behavious - previously on of the two
> aliases was mapped as rom/device while the other was mapped as plain rom.
> Now both aliases are mapped as rom/device. I'm guessing that this is the
> right behaviour, and the old behaviour was just an implementation limitation,
> but if someone can check, that would be even better. That file has the most
> sensitive changes so please review it extra carefully.
Regarding the flash mapping, your description matches my understanding of it.