uc_x86_mmr type available in qemu/target-i386/unicorn.c

This commit is contained in:
Chris Eagle
2016-02-04 19:09:41 -08:00
parent 59f7bf3be7
commit 49b9f4f8da
4 changed files with 59 additions and 58 deletions

View File

@ -10,12 +10,12 @@ extern "C" {
//Memory-Management Register fields (idtr, gdtr, ldtr, tr)
//borrow from SegmentCache in qemu/target-i386/cpu.h
typedef struct x86_mmr {
uint32_t selector;
uint64_t base; /* handle 32 or 64 bit CPUs */
typedef struct uc_x86_mmr {
uint16_t selector; /* not used by gdtr and idtr */
uint64_t base; /* handle 32 or 64 bit CPUs */
uint32_t limit;
uint32_t flags;
} x86_mmr;
uint32_t flags; /* not used by gdtr and idtr */
} uc_x86_mmr;
// Callback function for tracing SYSCALL/SYSENTER (for uc_hook_intr())
// @user_data: user data passed to tracing APIs.