x86_memory_query interface is used to query additional
information about an instruction for the x86 architecture and is a complement
to the cpu_memory_query interface.
SIM_INTERFACE(x86_memory_query) {
linear_address_t (*linear_address)(conf_object_t *cpu,
memory_handle_t *handle);
x86_seg_t (*segment)(conf_object_t *cpu, memory_handle_t *handle);
x86_access_type_t (*access_type)(conf_object_t *obj,
memory_handle_t *handle);
x86_memory_type_t (*memory_type)(conf_object_t *obj,
memory_handle_t *handle);
};
#define X86_MEMORY_QUERY_INTERFACE "x86_memory_query"
The linear_address is used to get the linear address of the access.
The segment function is used to get the segment register used in the access.
The access_type returns the x86_access_type_t of the
access and the memory_type returns the
x86_memory_type_t of the access.
memory_handle_t.