Revision 9f029603

b/exec.c
203 203
        && mr != &io_mem_watch;
204 204
}
205 205

  
206
static MemoryRegionSection *address_space_lookup_region(AddressSpace *as,
207
                                                        hwaddr addr)
208
{
209
    return phys_page_find(as->dispatch, addr >> TARGET_PAGE_BITS);
210
}
211

  
206 212
MemoryRegionSection *address_space_translate(AddressSpace *as, hwaddr addr,
207 213
                                             hwaddr *xlat, hwaddr *plen,
208 214
                                             bool is_write)
......
210 216
    MemoryRegionSection *section;
211 217
    Int128 diff;
212 218

  
213
    section = phys_page_find(as->dispatch, addr >> TARGET_PAGE_BITS);
219
    section = address_space_lookup_region(as, addr);
214 220
    /* Compute offset within MemoryRegionSection */
215 221
    addr -= section->offset_within_address_space;
216 222

  

Also available in: Unified diff