implemented basic block splitting, uc_mem_unmap should work for sub=blocks or across contiguous blocks
This commit is contained in:
2
qemu/memory.c
Normal file → Executable file
2
qemu/memory.c
Normal file → Executable 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);
|
||||
|
||||
Reference in New Issue
Block a user