mirror of
https://github.com/yuzu-mirror/unicorn.git
synced 2026-04-04 14:07:42 +00:00
[query] add UC_QUERY_PAGE_SIZE uc_query helper
Return the current page size used by the current arch. Useful to call uc_mem_map() with memory/size aligned. Signed-off-by: Nicolas PLANEL <nplanel@redhat.com>
This commit is contained in:
parent
1ddebc7304
commit
1087ba9dea
3 changed files with 16 additions and 0 deletions
|
|
@ -262,6 +262,7 @@ typedef struct uc_mem_region {
|
|||
typedef enum uc_query_type {
|
||||
// Dynamically query current hardware mode.
|
||||
UC_QUERY_MODE = 1,
|
||||
UC_QUERY_PAGE_SIZE,
|
||||
} uc_query_type;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue