dont use explicit page size, use TARGET_PAGE_SIZE

This commit is contained in:
Chris Eagle
2015-08-30 21:24:14 -07:00
parent 24dde77ec2
commit 410e317e92
2 changed files with 9 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ void memory_unmap(struct uc_struct *uc, MemoryRegion *mr)
{
target_ulong addr;
//make sure all pages associated with the MemoryRegion are flushed
for (addr = mr->addr; addr < mr->end; addr += 0x1000) {
for (addr = mr->addr; addr < mr->end; addr += TARGET_PAGE_SIZE) {
tlb_flush_page(uc->current_cpu, addr);
}
mr->enabled = false;