PPC: Fix openpic with relative memregions
commit38ae51a804a6ad2baec3e45ecb1571583b312441
authorAlexander Graf <agraf@suse.de>
Wed, 14 Mar 2012 19:17:07 +0000 (14 20:17 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 15 Mar 2012 12:12:12 +0000 (15 13:12 +0100)
tree0c5d1abd051e372f192996f3f1cc587a3b1beef4
parent298a971024534e9ab6c7b57845bbbd8188867d7a
PPC: Fix openpic with relative memregions

After commit 5312bd8b3152 we got memory region relative offsets into our mmio
callbacks instead of page boundary based offsets.

This broke the OpenPIC emulation which expected offsets to be on page boundary
and substracted its region offset manually.

This patch gets rid of that manual substraction and lets the memory api do its
magic instead.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c