implemented basic block splitting, uc_mem_unmap should work for sub=blocks or across contiguous blocks

This commit is contained in:
Chris Eagle
2015-08-30 00:22:18 -07:00
parent 4a680b9277
commit 942de0f2ae
2 changed files with 138 additions and 17 deletions

2
qemu/memory.c Normal file → Executable file
View File

@@ -47,7 +47,7 @@ MemoryRegion *memory_map(struct uc_struct *uc, ram_addr_t begin, size_t size, ui
void memory_unmap(struct uc_struct *uc, MemoryRegion *mr)
{
targer_ulong addr;
target_ulong addr;
//make sure all pages associated with the MemoryRegion are flushed
for (addr = mr->addr; addr < mr->end; addr += 0x1000) {
tlb_flush_page(uc->current_cpu, addr);