fix cow when using uc_mem_write
memory_cow expect the address and size to be aligned on pagesize.
This commit is contained in:
@@ -98,6 +98,9 @@ MemoryRegion *memory_cow(struct uc_struct *uc, MemoryRegion *current, hwaddr beg
|
||||
hwaddr current_offset;
|
||||
MemoryRegion *ram = g_new(MemoryRegion, 1);
|
||||
|
||||
assert((begin & ~TARGET_PAGE_MASK) == 0);
|
||||
assert((size & ~TARGET_PAGE_MASK) == 0);
|
||||
|
||||
if (current->container == uc->system_memory) {
|
||||
make_contained(uc, current);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user