about summary refs log tree commit diff stats
path: root/miasm2
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2')
-rw-r--r--miasm2/arch/x86/sem.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/miasm2/arch/x86/sem.py b/miasm2/arch/x86/sem.py
index 36d8e618..73ce8d1a 100644
--- a/miasm2/arch/x86/sem.py
+++ b/miasm2/arch/x86/sem.py
@@ -2333,11 +2333,9 @@ def hlt(ir, instr):
 
 def rdtsc(ir, instr):
     e = []
-    myEAX = mRAX[instr.mode]
-    myEDX = mRDX[instr.mode]
     e.append(ExprAff(tsc1, tsc1 + ExprInt32(1)))
-    e.append(ExprAff(myEAX, tsc1))
-    e.append(ExprAff(myEDX, tsc2))
+    e.append(ExprAff(mRAX[32], tsc1))
+    e.append(ExprAff(mRDX[32], tsc2))
     return e, []