This commit is contained in:
Nguyen Anh Quynh
2015-08-24 01:07:03 +08:00
parent f9b9dfbce9
commit 761fd3d13b
2 changed files with 12 additions and 1 deletions

2
uc.c
View File

@ -554,7 +554,7 @@ uc_err uc_mem_map(uch handle, uint64_t address, size_t size)
// align to 8KB boundary
map_begin[map_count] = address & (~ (8*1024 - 1));
s = (size + 8*1024 - 1) & (~ (8*1024));
s = (size + 8*1024 - 1) & (~ (8*1024 - 1));
map_end[map_count] = s + map_begin[map_count];
uc->memory_map(uc, map_begin[map_count], s);
map_count++;