about summary refs log tree commit diff stats
path: root/miasm2/arch/x86/regs.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/arch/x86/regs.py')
-rw-r--r--miasm2/arch/x86/regs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/miasm2/arch/x86/regs.py b/miasm2/arch/x86/regs.py
index 34585dae..7354457f 100644
--- a/miasm2/arch/x86/regs.py
+++ b/miasm2/arch/x86/regs.py
@@ -424,6 +424,12 @@ all_regs_ids_no_alias = [
     exception_flags, interrupt_num,
 ] + fltregs32_expr
 
+attrib_to_regs = {
+    16: regs16_expr + all_regs_ids_no_alias[all_regs_ids_no_alias.index(zf):],
+    32: regs32_expr + all_regs_ids_no_alias[all_regs_ids_no_alias.index(zf):],
+    64: all_regs_ids_no_alias,
+}
+
 all_regs_ids_byname = dict([(x.name, x) for x in all_regs_ids])
 
 all_regs_ids_init = [ExprId("%s_init" % x.name, x.size) for x in all_regs_ids]