diff options
| author | Ajax <commial@gmail.com> | 2016-06-29 08:23:54 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2016-09-01 17:34:50 +0200 |
| commit | 64e7bdcc046f4b5584443e01accd2206a73bf176 (patch) | |
| tree | 7138dfe6c69042c89d7b9ad93f224182ef223b46 | |
| parent | eebb61353ea5dd2036d1db8c3cc4aab6c1cc5662 (diff) | |
| download | miasm-64e7bdcc046f4b5584443e01accd2206a73bf176.tar.gz miasm-64e7bdcc046f4b5584443e01accd2206a73bf176.zip | |
Add exception_flags attribute to JitCore_CPU_x86 object
| -rw-r--r-- | miasm2/jitter/arch/JitCore_x86.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/miasm2/jitter/arch/JitCore_x86.c b/miasm2/jitter/arch/JitCore_x86.c index 0b788071..c8ce8bae 100644 --- a/miasm2/jitter/arch/JitCore_x86.c +++ b/miasm2/jitter/arch/JitCore_x86.c @@ -57,6 +57,7 @@ reg_dict gpreg_dict[] = { {.name = "RAX", .offset = offsetof(vm_cpu_t, RAX)}, {.name = "tsc1", .offset = offsetof(vm_cpu_t, tsc1)}, {.name = "tsc2", .offset = offsetof(vm_cpu_t, tsc2)}, + {.name = "exception_flags", .offset = offsetof(vm_cpu_t, exception_flags)}, }; @@ -521,6 +522,8 @@ getset_reg_u64(MM7); getset_reg_u32(tsc1); getset_reg_u32(tsc2); +getset_reg_u32(exception_flags); + PyObject* get_gpreg_offset_all(void) { @@ -674,6 +677,8 @@ static PyGetSetDef JitCpu_getseters[] = { {"tsc1", (getter)JitCpu_get_tsc1, (setter)JitCpu_set_tsc1, "tsc1", NULL}, {"tsc2", (getter)JitCpu_get_tsc2, (setter)JitCpu_set_tsc2, "tsc2", NULL}, + {"exception_flags", (getter)JitCpu_get_exception_flags, (setter)JitCpu_set_exception_flags, "exception_flags", NULL}, + {NULL} /* Sentinel */ }; |