Add target_page_size member to uc_struct to track TARGET_PAGE_SIZE

This commit is contained in:
Chris Eagle
2015-08-31 01:00:44 -07:00
parent 410e317e92
commit b27e987932
4 changed files with 19 additions and 17 deletions

View File

@@ -76,6 +76,9 @@ static inline void uc_common_init(struct uc_struct* uc)
uc->memory_unmap = memory_unmap;
uc->readonly_mem = memory_region_set_readonly;
uc->target_page_size = TARGET_PAGE_SIZE;
uc->target_page_align = TARGET_PAGE_SIZE - 1;
if (!uc->release)
uc->release = release_common;
}