From 48fb28dfbcb0dbf8e9e879623704e236d69af31f Mon Sep 17 00:00:00 2001 From: mio Date: Mon, 10 Feb 2025 15:36:03 +0800 Subject: [PATCH] Update documents for MMU access --- include/unicorn/unicorn.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index c057dcc9..89efb0c4 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -418,7 +418,10 @@ typedef enum uc_hook_type { (UC_HOOK_MEM_READ + UC_HOOK_MEM_WRITE + UC_HOOK_MEM_FETCH) /* - Callback function for hooking memory (READ, WRITE & FETCH) + Callback function for hooking memory (READ, WRITE & FETCH). + + NOTE: The access might be splitted depending on the MMU implementation. + UC_TLB_VIRTUAL provides more fine-grained control about memory accessing. @type: this memory is being READ, or WRITE @address: address where memory is being written or read to @@ -434,6 +437,9 @@ typedef void (*uc_cb_hookmem_t)(uc_engine *uc, uc_mem_type type, Callback function for handling invalid memory access events (UNMAPPED and PROT events) + NOTE: The access might be splitted depending on the MMU implementation. + UC_TLB_VIRTUAL provides more fine-grained control about memory accessing. + @type: this memory is being READ, or WRITE @address: address where memory is being written or read to @size: size of data being read or written