Index: syzygy/agent/common/agent.cc |
diff --git a/syzygy/agent/common/agent.cc b/syzygy/agent/common/agent.cc |
index 5721a8e2c2a5654f998f7c071d0535143f2be10b..58f42679f9d08972659deb4d86557621cee24033 100644 |
--- a/syzygy/agent/common/agent.cc |
+++ b/syzygy/agent/common/agent.cc |
@@ -29,8 +29,12 @@ void InitializeCrt() { |
// Disable SSE2 instructions. This is to ensure that our instrumentation |
// doesn't inadvertently tinker with SSE2 registers via the CRT, causing |
// instrumented SSE2 enabled instructions to screw up. |
+#ifndef _WIN64 |
+ // SSE registers are a part of the x64 calling convention, so they |
+ // cannot be disabled. |
chrisha
2016/08/03 17:40:05
Add to this comment:
The 64-bit version of the ru
|
const int kDisableSSE2 = 0; |
_set_SSE2_enable(kDisableSSE2); |
+#endif |
} |
} // namespace common |