From 6284a22caa9c5119e2aa436efe5ee7e739b93ac2 Mon Sep 17 00:00:00 2001 From: edef Date: Sat, 16 Apr 2016 07:41:00 +0200 Subject: [PATCH] add fpsr, eflags for good measure courtesy of @whitequark --- src/arch/x86/mod.rs | 2 +- src/arch/x86_64/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/x86/mod.rs b/src/arch/x86/mod.rs index d17b2fa..7441bdc 100644 --- a/src/arch/x86/mod.rs +++ b/src/arch/x86/mod.rs @@ -24,7 +24,7 @@ macro_rules! swap { : "eax", "ebx", "ecx", "edx", "esi", "edi", //"ebp", "esp", "mmx0", "mmx1", "mmx2", "mmx3", "mmx4", "mmx5", "mmx6", "mmx7", "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", - "cc" + "cc", "fpsr", "eflags" : "volatile") }; } diff --git a/src/arch/x86_64/mod.rs b/src/arch/x86_64/mod.rs index 3706383..0128691 100644 --- a/src/arch/x86_64/mod.rs +++ b/src/arch/x86_64/mod.rs @@ -27,7 +27,7 @@ macro_rules! swap { "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15", "xmm16", "xmm17", "xmm18", "xmm19", "xmm20", "xmm21", "xmm22", "xmm23", "xmm24", "xmm25", "xmm26", "xmm27", "xmm28", "xmm29", "xmm30", "xmm31" - "cc" + "cc", "fpsr", "eflags" : "volatile"); } }